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/shared/unit-name.h | |
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/shared/unit-name.h')
-rw-r--r-- | src/shared/unit-name.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h index 7aab2e557d..64bb248907 100644 --- a/src/shared/unit-name.h +++ b/src/shared/unit-name.h @@ -56,4 +56,6 @@ char *unit_name_to_path(const char *name); char *unit_dbus_path_from_name(const char *name); +char *unit_name_mangle(const char *name); + #endif |