mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
Fix pam_systemd_home's debug parameter to match man page description
This commit is contained in:
parent
76643fedc8
commit
332f38d084
@ -52,9 +52,12 @@ static int parse_argv(
|
||||
else if (please_suspend)
|
||||
*please_suspend = k;
|
||||
|
||||
} else if (streq(argv[i], "debug")) {
|
||||
if (debug)
|
||||
*debug = true;
|
||||
|
||||
} else if ((v = startswith(argv[i], "debug="))) {
|
||||
int k;
|
||||
|
||||
k = parse_boolean(v);
|
||||
if (k < 0)
|
||||
pam_syslog(handle, LOG_WARNING, "Failed to parse debug= argument, ignoring: %s", v);
|
||||
|
Loading…
Reference in New Issue
Block a user