diff options
author | Steve Langasek <steve.langasek@canonical.com> | 2022-08-17 16:21:14 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2022-08-17 23:35:06 +0000 |
commit | 6b25469cd26d79e424e1e58aa0a4e3bfa9855982 (patch) | |
tree | e0e66398e144833a8d058787f2204ef7cb0782bc /debian/patches-applied/pam_unix_dont_trust_chkpwd_caller.patch | |
parent | 7561896529a7af05201dc31e959a05897ef99e19 (diff) | |
download | pam-6b25469cd26d79e424e1e58aa0a4e3bfa9855982.tar.gz pam-6b25469cd26d79e424e1e58aa0a4e3bfa9855982.tar.bz2 pam-6b25469cd26d79e424e1e58aa0a4e3bfa9855982.zip |
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.patch | 4 |
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 */ |