* src/su.c: Define shellstr before the environment so that

restricted_shell is called only once. This will allow moving the
	environment definition after the switch to the new user.
This commit is contained in:
nekral-guest
2011-06-13 18:26:10 +00:00
parent 2f71935616
commit dc90c77285
2 changed files with 33 additions and 32 deletions

View File

@@ -13,6 +13,9 @@
reset to false).
* src/su.c: No need to change the user's shell in case of
subsystem root. Update the comments.
* src/su.c: Define shellstr before the environment so that
restricted_shell is called only once. This will allow moving the
environment definition after the switch to the new user.
2011-06-10 Nicolas François <nicolas.francois@centraliens.net>