uninitialized value $3 / $curmod
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[impact]
Call of pam-auth-update raises some warnings of uninitalized variables
[test case]
install sssd libpam-sss libnss-sss and run pam-auth-update
[versions]
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
libpam-runtime 1.1.3-7ubuntu2
[possible solution]
--- a/pam-auth-update Tue Mar 26 11:05:37 2013 +0100
+++ b/pam-auth-update Tue Mar 26 11:05:56 2013 +0100
@@ -620,8 +620,8 @@
- @prev_opts = split(/\s+/,$3);
- $curmod = $1;
+ @prev_opts = split(/\s+/, (defined $3?$3:"") );
+ $curmod = (defined $1?$1:"");
Thanks for the patch, but that's not a correct fix. $3 is never supposed to be unset here, so the root error is somewhere else.
I also can't reproduce the problem with your provided test case. You must have previous pam-auth-update settings in your environment that are contributing to the problem.
Please provide:
- the exact output of the pam-auth-update command
- a tarball of /etc/pam.d/common-* and /var/lib/pam