[Bug 364665] Re: pam-auth-update spews Perl warnings while processing a valid profile file

John Brooker 364665 at bugs.launchpad.net
Mon Jun 25 17:45:57 UTC 2012


This bug appears to be present in lucid 10.04 (libpam-runtime
1.1.1-2ubuntu5.4 ):

# pam-auth-update --package
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 624, <CURRENT> line 25.
Use of uninitialized value $curmod in quotemeta at /usr/sbin/pam-auth-update line 632, <CURRENT> line 25.
Use of uninitialized value $curmod in hash element at /usr/sbin/pam-auth-update line 654, <CURRENT> line 25.
Use of uninitialized value $curmod in hash element at /usr/sbin/pam-auth-update line 654, <CURRENT> line 25.
Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 624, <CURRENT> line 25.
Use of uninitialized value $curmod in quotemeta at /usr/sbin/pam-auth-update line 632, <CURRENT> line 25.
Use of uninitialized value $curmod in hash element at /usr/sbin/pam-auth-update line 654, <CURRENT> line 25.
Use of uninitialized value $curmod in hash element at /usr/sbin/pam-auth-update line 654, <CURRENT> line 25.

The regex and variable assignments appear to assume that there will always be an argument to a particular pam module, which is logically incorrect:
623                                 $line =~ /^((\[[^]]+\]|\w+)\s+\S+)\s*(.*)/;
624                                 @prev_opts = split(/\s+/,$3);

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/364665

Title:
  pam-auth-update spews Perl warnings while processing a valid profile
  file

Status in “pam” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: libpam-runtime

  This bug report is an offshoot of bug #295441. pam-auth-update (from
  libpam-runtime 1.0.1-4ubuntu5.5 in Intrepid) no longer generates an
  invalid PAM config file, but it is still producing copious Perl
  warnings while processing the attached (well-formed) authentication
  profile file:

  # /usr/sbin/pam-auth-update
   Use of uninitialized value $3 in split at /usr/sbin/pam-auth-update line 607, <CURRENT> line 27.
   Use of uninitialized value $curmod in quotemeta at /usr/sbin/pam-auth-update line 615, <CURRENT> line 27.
   Use of uninitialized value $curmod in hash element at /usr/sbin/pam-auth-update line 637, <CURRENT> line 27.
   Use of uninitialized value $curmod in hash element at /usr/sbin/pam-auth-update line 637, <CURRENT> line 27.
  ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/364665/+subscriptions




More information about the foundations-bugs mailing list