Fix pam_systemd_home's debug parameter to match man page description

This commit is contained in:
Joel Shapiro
2020-04-13 17:41:27 +02:00
committed by Lennart Poettering
parent 76643fedc8
commit 332f38d084
+4 -1
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);