chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit: introduce %s specifier for the user shell
[elogind.git]
/
src
/
login
/
loginctl.c
diff --git
a/src/login/loginctl.c
b/src/login/loginctl.c
index a838a54086b7daa52dc23fbb402abdac7d2d73fd..7b751e778fa29d4dc826d28b339de115da4e78b7 100644
(file)
--- a/
src/login/loginctl.c
+++ b/
src/login/loginctl.c
@@
-1089,7
+1089,7
@@
static int show(DBusConnection *bus, char **args, unsigned n) {
uid_t uid;
uint32_t u;
uid_t uid;
uint32_t u;
- ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL);
+ ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL
, NULL
);
if (ret < 0) {
log_error("User %s unknown.", args[i]);
goto finish;
if (ret < 0) {
log_error("User %s unknown.", args[i]);
goto finish;
@@
-1320,7
+1320,7
@@
static int enable_linger(DBusConnection *bus, char **args, unsigned n) {
goto finish;
}
goto finish;
}
- ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL);
+ ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL
, NULL
);
if (ret < 0) {
log_error("Failed to resolve user %s: %s", args[i], strerror(-ret));
goto finish;
if (ret < 0) {
log_error("Failed to resolve user %s: %s", args[i], strerror(-ret));
goto finish;
@@
-1387,7
+1387,7
@@
static int terminate_user(DBusConnection *bus, char **args, unsigned n) {
goto finish;
}
goto finish;
}
- ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL);
+ ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL
, NULL
);
if (ret < 0) {
log_error("Failed to look up user %s: %s", args[i], strerror(-ret));
goto finish;
if (ret < 0) {
log_error("Failed to look up user %s: %s", args[i], strerror(-ret));
goto finish;
@@
-1455,7
+1455,7
@@
static int kill_user(DBusConnection *bus, char **args, unsigned n) {
goto finish;
}
goto finish;
}
- ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL);
+ ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL
, NULL
);
if (ret < 0) {
log_error("Failed to look up user %s: %s", args[i], strerror(-ret));
goto finish;
if (ret < 0) {
log_error("Failed to look up user %s: %s", args[i], strerror(-ret));
goto finish;