[hackers] [ubase] fix SHELL being set to the usr's home directory || Jakob Kramer
commit ab373918376f5d9c57d79eabd8a87dc4277bba83
Author: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Fri Oct 18 21:57:24 2013 +0200
fix SHELL being set to the usr's home directory
diff --git a/su.c b/su.c
index 94ead18..339cba1 100644
--- a/su.c
+++ b/su.c
_AT_@ -106,7 +106,7 @@ main(int argc, char **argv)
newargv = (char *const[]){pw->pw_shell, NULL};
if (!pflag) {
setenv("HOME", pw->pw_dir, 1);
- setenv("SHELL", pw->pw_dir, 1);
+ setenv("SHELL", pw->pw_shell, 1);
if (strcmp(pw->pw_name, "root") != 0) {
setenv("USER", pw->pw_name, 1);
setenv("LOGNAME", pw->pw_name, 1);
Received on Fri Oct 18 2013 - 22:46:08 CEST
This archive was generated by hypermail 2.3.0
: Fri Oct 18 2013 - 22:48:26 CEST