diff options
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 */ |