* src/su.c: Do not sanitize the environment. This breaks
--preserve-environment. This sanitation was disabled on Debian since quite some time with no reported issues, and sanitize_env() documentation agrees that it should be useless as all modern Unixes will handle setuid executables properly. This Fixes Alioth#312287.
This commit is contained in:
parent
0fce70b091
commit
291b28ac52
@ -1,3 +1,12 @@
|
|||||||
|
2009-01-24 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/su.c: Do not sanitize the environment. This breaks
|
||||||
|
--preserve-environment. This sanitation was disabled on Debian
|
||||||
|
since quite some time with no reported issues, and sanitize_env()
|
||||||
|
documentation agrees that it should be useless as all modern
|
||||||
|
Unixes will handle setuid executables properly. This Fixes
|
||||||
|
Alioth#312287.
|
||||||
|
|
||||||
2009-01-24 Nicolas François <nicolas.francois@centraliens.net>
|
2009-01-24 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/setupenv.c: Fix typo from 2009-11-01.
|
* libmisc/setupenv.c: Fix typo from 2009-11-01.
|
||||||
|
2
src/su.c
2
src/su.c
@ -409,8 +409,6 @@ int main (int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
#endif /* !USE_PAM */
|
#endif /* !USE_PAM */
|
||||||
|
|
||||||
sanitize_env ();
|
|
||||||
|
|
||||||
(void) setlocale (LC_ALL, "");
|
(void) setlocale (LC_ALL, "");
|
||||||
(void) bindtextdomain (PACKAGE, LOCALEDIR);
|
(void) bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
(void) textdomain (PACKAGE);
|
(void) textdomain (PACKAGE);
|
||||||
|
Loading…
Reference in New Issue
Block a user