As far as I can see, pam_env already strips quotes. Here's the code:

        /* now we try to be smart about quotes around the value,
           but not too smart, we can't get all fancy with escaped
           values like bash */
        if (key[i] == '=' && (key[++i] == '\"' || key[i] == '\'')) {
            for ( t = i+1 ; key[t] != '\0' ; t++)
                if (key[t] != '\"' && key[t] != '\'')
                    key[i++] = key[t];
                else if (key[t+1] != '\0')
                    key[i++] = key[t];
            key[i] = '\0';
        }

Is this not working for you?

-- 
pam_env's and localechooser's usage of quotes for /etc/default/locale conflicts
https://bugs.launchpad.net/bugs/387262
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to