pam-auth-update: Use of uninitialized value $fieldname

Bug #903304 reported by Fredrik Thulin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pam (Ubuntu)
Triaged
Low
Unassigned

Bug Description

This is on Ubuntu 11.10 with libpam-runtime 1.1.3-2ubuntu2.1.

What happened :

While working on a PAM module packaging, I felt the need to try and add some comments to my packages file in /usr/share/pam-configs/. Of course, it turns out there is no such thing as comments in those files, but my attempt of one was not handled very gracefully :

  # pam-auth-update
  Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 688, <PROFILE> line 1.
  Use of uninitialized value $fieldname in hash element at /usr/sbin/pam-auth-update line 689, <PROFILE> line 1.
  # cat /usr/share/pam-configs/yubikey
  # test comment
  Name: YubiKey two-factor authentication with online validation (recommended)
  ...

What I would have expected :

Wouldn't it be reasonable for badly formatted profiles to be ignored/rejected?

Thanks.

/Fredrik

Steve Langasek (vorlon)
Changed in pam (Ubuntu):
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.