]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Fix pam_systemd_home's debug parameter to match man page description
authorJoel Shapiro <joel.shapiro7@gmail.com>
Sun, 12 Apr 2020 05:40:17 +0000 (00:40 -0500)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Apr 2020 15:41:27 +0000 (17:41 +0200)
src/home/pam_systemd_home.c

index e94f80a3802697b15545d9567e1198b6f95d97a8..3d7ccdf3c24976898dc0fe59074f1d53d2d59b14 100644 (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);