summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Shapiro <joel.shapiro7@gmail.com>2020-04-12 00:40:17 -0500
committerLennart Poettering <lennart@poettering.net>2020-04-13 17:41:27 +0200
commit332f38d084c68c3d524c086f4d7843a2fd048ba8 (patch)
treed636381f69ceb2937b1a0ea238ab8e4dbe66d5fc
parent76643fedc874da5bbf3861fce35742018e40adc7 (diff)
downloadsystemd-332f38d084c68c3d524c086f4d7843a2fd048ba8.tar.gz
Fix pam_systemd_home's debug parameter to match man page description
-rw-r--r--src/home/pam_systemd_home.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c
index e94f80a380..3d7ccdf3c2 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);