diff options
author | Denis Vlasenko | 2008-09-20 16:28:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-09-20 16:28:59 +0000 |
commit | b8d1a4cd5f686ee95f6cf13634cba1f96e382f26 (patch) | |
tree | 86423f82c3593245aedae65e2e4c8f7e0c4d6482 /miscutils/crontab.c | |
parent | b61dc1c1cea7aaef3cd2aa016a9c7d4d1ffd71bf (diff) | |
download | busybox-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.zip busybox-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.tar.gz |
init: set stderr to NONBLOCK
*: s/setenv(a,b,1)/xsetenv(a,b)/
function old new delta
init_main 856 895 +39
message 146 144 -2
crond_main 1418 1416 -2
run 661 658 -3
zcip_main 1409 1403 -6
edit_file 910 901 -9
environment 20 - -20
Diffstat (limited to 'miscutils/crontab.c')
-rw-r--r-- | miscutils/crontab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index f8662ba..ef6d943 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c @@ -21,9 +21,9 @@ static void change_user(const struct passwd *pas) { - setenv("USER", pas->pw_name, 1); - setenv("HOME", pas->pw_dir, 1); - setenv("SHELL", DEFAULT_SHELL, 1); + xsetenv("USER", pas->pw_name); + xsetenv("HOME", pas->pw_dir); + xsetenv("SHELL", DEFAULT_SHELL); /* initgroups, setgid, setuid */ change_identity(pas); |