chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shutdownd: use PassCred=yes in the socket unit
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index b0baf8dc5f1349ff37d49eccb9dfe6b123660b03..7373e64e8c24c53011694634e01e767fc3136569 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-3462,7
+3462,7
@@
finish:
static int enable_sysv_units(char **args) {
int r = 0;
static int enable_sysv_units(char **args) {
int r = 0;
-#if defined (HAVE_SYSV_COMPAT) && (defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_SUSE) || defined(TARGET_MEEGO) || defined(TARGET_ALTLINUX))
+#if defined (HAVE_SYSV_COMPAT) && (defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_SUSE) || defined(TARGET_MEEGO) || defined(TARGET_ALTLINUX)
|| defined(TARGET_MAGEIA)
)
const char *verb = args[0];
unsigned f = 1, t = 1;
LookupPaths paths;
const char *verb = args[0];
unsigned f = 1, t = 1;
LookupPaths paths;
@@
-5156,7
+5156,7
@@
static int halt_main(DBusConnection *bus) {
if (!arg_no_wtmp) {
if (sd_booted() > 0)
log_debug("Not writing utmp record, assuming that systemd-update-utmp is used.");
if (!arg_no_wtmp) {
if (sd_booted() > 0)
log_debug("Not writing utmp record, assuming that systemd-update-utmp is used.");
- else if ((r = utmp_put_shutdown(
0
)) < 0)
+ else if ((r = utmp_put_shutdown()) < 0)
log_warning("Failed to write utmp record: %s", strerror(-r));
}
log_warning("Failed to write utmp record: %s", strerror(-r));
}