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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user