* src/su.c: Move definition of change_environment and shellstr

after the switch to the final subsystem. The previous architecture
	forced to always change the environment (the shell starts with a
	'*' and was thus restricted, and change_environment could not be
	reset to false).
This commit is contained in:
nekral-guest
2011-06-13 18:25:57 +00:00
parent 941e94f1d2
commit 2f71935616
2 changed files with 114 additions and 111 deletions

View File

@@ -4,8 +4,13 @@
definition of shellstr, PATH and IFS is not influenced (getenv,
getdef, restricted_shell) by and does not influence (addenv does
not change environ) the authentication. And the authentication
does not overwrite those definitions. This will ease an extraction
did not overwrite those definitions. This will ease an extraction
from the big main() function.
* src/su.c: Move definition of change_environment and shellstr
after the switch to the final subsystem. The previous architecture
forced to always change the environment (the shell starts with a
'*' and was thus restricted, and change_environment could not be
reset to false).
* src/su.c: No need to change the user's shell in case of
subsystem root. Update the comments.