← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2115874] Re: error when last pam_environment line is an error

 

This looks like a fairly straightforward case of looping on lines and
using only the last pass as the result of the whole.

https://git.launchpad.net/ubuntu/+source/pam/tree/modules/pam_env/pam_env.c#n887

What's not so clear is whether we should fail when there's an error
anywhere or simply ignore errors in the env file parsing. Failing auth
on any error seems pretty drastic, but maybe more "correct".

** Tags added: dcr-incoming

** Changed in: pam (Ubuntu)
       Status: New => Triaged

** Changed in: pam (Ubuntu)
   Importance: Undecided => Medium

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

Title:
  error when last pam_environment line is an error

Status in pam package in Ubuntu:
  Triaged

Bug description:
  I have in my ~/.pam_environment:
  PAPERSIZE=a4
  LANGUAGE DEFAULT= OVERRIDE=

  This prevents a login via gdm, with the message:
  Critical error - immediate abort

  No error occurs:
  - if i put a value in /etc/environment for LANGUAGE
  - if the two lines in ~/.pam_environment are reversed
  - if i use LANGUAGE DEFAULT="" OVERRIDE=""

  The error occurred on ubuntu 24.04
  but not on 22.04

  Regards, Mike

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



References