From b0193f1c1f1540bfccbdca02df82669b9308e4e2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Jun 2012 13:08:48 +0200 Subject: 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. --- src/test/test-hostname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/test-hostname.c') 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; -- cgit v1.2.3-54-g00ecf