diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-06-22 13:08:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-06-22 13:08:48 +0200 |
commit | b0193f1c1f1540bfccbdca02df82669b9308e4e2 (patch) | |
tree | c23e22e1857d73f7faff35ab1569a2070bac1797 /src/test/test-hostname.c | |
parent | 03658d4fd66d5d0ccce643cef92185ec38b0e575 (diff) |
systemctl: automatically turn paths and unescaped unit names into proper unit names
This makes sure that
systemctl status /home
is implicitly translated to:
systemctl status /home.mount
Similar, /dev/foobar becomes dev-foobar.device.
Also, all characters that cannot be part of a unit name are implicitly
escaped.
Diffstat (limited to 'src/test/test-hostname.c')
-rw-r--r-- | src/test/test-hostname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-hostname.c b/src/test/test-hostname.c index 8c1a60f940..ad4f285619 100644 --- a/src/test/test-hostname.c +++ b/src/test/test-hostname.c @@ -30,7 +30,8 @@ int main(int argc, char* argv[]) { int r; - if ((r = hostname_setup()) < 0) + r = hostname_setup(); + if (r < 0) fprintf(stderr, "hostname: %s\n", strerror(-r)); return 0; |