Revert "systemctl: append default suffix only if none present"

This reverts a chunk out of commit 5e03c6e3b5
which was trying to pass NULL to the the '.service' default. Anyway,
it seems better to be explicit.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-11-28 12:28:44 -05:00
parent 23bbb0de4e
commit e80733be33
+4 -1
View File
@@ -2701,7 +2701,10 @@ static int expand_names(sd_bus *bus, char **names, const char* suffix, char ***r
STRV_FOREACH(name, names) {
char *t;
t = unit_name_mangle_with_suffix(*name, MANGLE_GLOB, suffix);
if (suffix)
t = unit_name_mangle_with_suffix(*name, MANGLE_GLOB, suffix);
else
t = unit_name_mangle(*name, MANGLE_GLOB);
if (!t)
return log_oom();