diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-01-14 02:11:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-01-14 21:24:58 +0100 |
commit | 1dcf60656cc68cf0182703d77e31f24f05b0c8cc (patch) | |
tree | 32f46201784103ae013c03dd5b9b0b0ffa7293ad /src/shared/unit-name.h | |
parent | f84190d8cad66f36eef1d851213711244ca297be (diff) |
systemctl: be smarter when mangling snapshot names
For "systemctl snapshot" it makes no sense to complete an incomplete
name with ".service" as we previously did, use ".snapshot" instead.
Also, don't bother with mount units or suchlike, we know that this must
be a snapshot and hence is the only sane way for completion.
Diffstat (limited to 'src/shared/unit-name.h')
-rw-r--r-- | src/shared/unit-name.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h index d7528a3ac7..9150dd0b3f 100644 --- a/src/shared/unit-name.h +++ b/src/shared/unit-name.h @@ -94,3 +94,4 @@ char *unit_name_to_path(const char *name); char *unit_dbus_path_from_name(const char *name); char *unit_name_mangle(const char *name); +char *snapshot_name_mangle(const char *name); |