From 1dcf60656cc68cf0182703d77e31f24f05b0c8cc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 14 Jan 2013 02:11:57 +0100 Subject: 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. --- src/shared/unit-name.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/unit-name.h') 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); -- cgit v1.2.3-54-g00ecf