]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostname-util: do not allow empty machine spec
authorMike Yuan <me@yhndnzj.com>
Sun, 15 Jun 2025 17:13:22 +0000 (19:13 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 16 Jun 2025 23:39:56 +0000 (01:39 +0200)
commitd2e727bf6826e486e9058877332860314c760df8
tree9a797a5330883db0ba566a42f3880d2d8d2dc7e8
parent75e638671cc8e1f7a7c75b8665fe7e474429dd25
hostname-util: do not allow empty machine spec

Follow-up for 2ae32e9d8fc95010ee4b52b3118ea9fbf05d96d6

Let's not open this up even further and rather disallow
--machine="".
src/basic/hostname-util.c
src/test/test-hostname-util.c