1
0
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:
Joel Shapiro 2020-04-12 00:40:17 -05:00 committed by Lennart Poettering
parent 76643fedc8
commit 332f38d084

View File

@ -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);