diff options
author | Joel Shapiro <joel.shapiro7@gmail.com> | 2020-04-12 00:40:17 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-17 14:30:54 +0200 |
commit | 059211c7c612cb9bc80b7a76159050431363851b (patch) | |
tree | 0b79668785dd0e3b358b289e82ffc0355475a234 | |
parent | c4883fe438af02f52ad51dbeb03e077bb0e7c835 (diff) | |
download | systemd-059211c7c612cb9bc80b7a76159050431363851b.tar.gz |
Fix pam_systemd_home's debug parameter to match man page description
(cherry picked from commit 332f38d084c68c3d524c086f4d7843a2fd048ba8)
-rw-r--r-- | src/home/pam_systemd_home.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c index afc72412d4..9f34ee2ad3 100644 --- a/src/home/pam_systemd_home.c +++ b/src/home/pam_systemd_home.c @@ -45,9 +45,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); |