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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2115874 Title: error when last pam_environment line is an error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pam/+bug/2115874/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
