From: Joel Shapiro Date: Sun, 12 Apr 2020 05:40:17 +0000 (-0500) Subject: Fix pam_systemd_home's debug parameter to match man page description X-Git-Tag: v246-rc1~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=332f38d084c68c3d524c086f4d7843a2fd048ba8;p=thirdparty%2Fsystemd.git Fix pam_systemd_home's debug parameter to match man page description --- diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c index e94f80a3802..3d7ccdf3c24 100644 --- a/src/home/pam_systemd_home.c +++ b/src/home/pam_systemd_home.c @@ -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);