chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: allow globbing in commands which take multiple unit names
[elogind.git]
/
src
/
run
/
run.c
diff --git
a/src/run/run.c
b/src/run/run.c
index 2e0cd1a6d228792064ff6b2279cd1f904a9f1e09..ef2015fe3c3e753d7cc5f622c63b164550c43819 100644
(file)
--- a/
src/run/run.c
+++ b/
src/run/run.c
@@
-208,7
+208,7
@@
static int message_start_transient_unit_new(sd_bus *bus, const char *name, sd_bu
if (!isempty(arg_slice)) {
_cleanup_free_ char *slice;
if (!isempty(arg_slice)) {
_cleanup_free_ char *slice;
- slice = unit_name_mangle_with_suffix(arg_slice, ".slice");
+ slice = unit_name_mangle_with_suffix(arg_slice,
false,
".slice");
if (!slice)
return -ENOMEM;
if (!slice)
return -ENOMEM;
@@
-255,7
+255,7
@@
static int start_transient_service(
int r;
if (arg_unit)
int r;
if (arg_unit)
- name = unit_name_mangle_with_suffix(arg_unit, ".service");
+ name = unit_name_mangle_with_suffix(arg_unit,
false,
".service");
else
asprintf(&name, "run-%lu.service", (unsigned long) getpid());
if (!name)
else
asprintf(&name, "run-%lu.service", (unsigned long) getpid());
if (!name)
@@
-342,7
+342,7
@@
static int start_transient_scope(
assert(bus);
if (arg_unit)
assert(bus);
if (arg_unit)
- name = unit_name_mangle_with_suffix(arg_unit, ".scope");
+ name = unit_name_mangle_with_suffix(arg_unit,
false,
".scope");
else
asprintf(&name, "run-%lu.scope", (unsigned long) getpid());
if (!name)
else
asprintf(&name, "run-%lu.scope", (unsigned long) getpid());
if (!name)