chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sysusers: preserve label of /etc/{passwd, group}
[elogind.git]
/
src
/
run
/
run.c
diff --git
a/src/run/run.c
b/src/run/run.c
index e3b040d79a6d587279f7c9e4ef4991e600e1bbad..9d5527b29c6cf209b6e12ac7a0b4dc66d16a4327 100644
(file)
--- a/
src/run/run.c
+++ b/
src/run/run.c
@@
-338,7
+338,7
@@
static int start_transient_service(
if (arg_unit)
name = unit_name_mangle_with_suffix(arg_unit, MANGLE_NOGLOB, ".service");
else
if (arg_unit)
name = unit_name_mangle_with_suffix(arg_unit, MANGLE_NOGLOB, ".service");
else
- asprintf(&name, "run-
%lu.service", (unsigned long)
getpid());
+ asprintf(&name, "run-
"PID_FMT".service",
getpid());
if (!name)
return log_oom();
if (!name)
return log_oom();
@@
-474,7
+474,7
@@
static int start_transient_scope(
if (arg_unit)
name = unit_name_mangle_with_suffix(arg_unit, MANGLE_NOGLOB, ".scope");
else
if (arg_unit)
name = unit_name_mangle_with_suffix(arg_unit, MANGLE_NOGLOB, ".scope");
else
- asprintf(&name, "run-
%lu.scope", (unsigned long)
getpid());
+ asprintf(&name, "run-
"PID_FMT".scope",
getpid());
if (!name)
return log_oom();
if (!name)
return log_oom();
@@
-593,7
+593,7
@@
int main(int argc, char* argv[]) {
arg_description = description;
}
arg_description = description;
}
- r = bus_open_transport(arg_transport, arg_host, arg_user, &bus);
+ r = bus_open_transport
_systemd
(arg_transport, arg_host, arg_user, &bus);
if (r < 0) {
log_error("Failed to create bus connection: %s", strerror(-r));
goto finish;
if (r < 0) {
log_error("Failed to create bus connection: %s", strerror(-r));
goto finish;