Restore original EUID rather than 0 during option processing.
authorPaul Mackerras <paulus@samba.org>
Sun, 18 Jun 2006 11:26:00 +0000 (11:26 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 18 Jun 2006 11:26:00 +0000 (11:26 +0000)
commit3d05bed7431b9c44c4beca0049b5c0e910abf2a1
treed81415cec8f546a12d167d186891271a9db38f57
parent495ba31462f32848a98ae155bca8f8dab66f8097
Restore original EUID rather than 0 during option processing.

When dropping and regaining privileges during option processing,
the seteuid to regain privileges is now the original EUID rather
than a constant zero.  This means that `pppd --version' run without
root privilege prints the version number and exits rather than
giving an "unable to regain privileges" error.
pppd/auth.c
pppd/options.c