Adding a pam task, pam_env does some sanity checking of the input (e.g. %=1 in /etc/default/locale gets ignored) so I don't see why an empty variable name should cause a total failure. But will fix the update-locale script too.
Adding a pam task, pam_env does some sanity checking of the input (e.g. %=1 in /etc/default/locale gets ignored) so I don't see why an empty variable name should cause a total failure. But will fix the update-locale script too.