summaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2022-08-17 16:21:14 -0700
committerSteve Langasek <steve.langasek@canonical.com>2022-08-17 23:35:06 +0000
commit6b25469cd26d79e424e1e58aa0a4e3bfa9855982 (patch)
treee0e66398e144833a8d058787f2204ef7cb0782bc /debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch
parent7561896529a7af05201dc31e959a05897ef99e19 (diff)
Refresh patches
Diffstat (limited to 'debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch')
-rw-r--r--debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch b/debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch
index 11d4ee31..6a9e525e 100644
--- a/debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch
+++ b/debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch
@@ -11,10 +11,10 @@ Index: pam/modules/pam_unix/unix_chkpwd.c
===================================================================
--- pam.orig/modules/pam_unix/unix_chkpwd.c
+++ pam/modules/pam_unix/unix_chkpwd.c
-@@ -137,9 +137,10 @@
+@@ -138,9 +138,10 @@
/* if the caller specifies the username, verify that user
matches it */
- if (strcmp(user, argv[1])) {
+ if (user == NULL || strcmp(user, argv[1])) {
+ gid_t gid = getgid();
user = argv[1];
/* no match -> permanently change to the real user and proceed */