aboutsummaryrefslogtreecommitdiff
path: root/libbb/setup_environment.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-26 14:07:50 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-26 14:07:50 +0000
commit76f4ab68a56e14747c25e6da830cf73b38bbe1cd (patch)
treed2e94dac0f1f5da5cb3ecb927b78c4c2a02f4ea6 /libbb/setup_environment.c
parent37e0338781ea28f57bed354fe745effb020d16fc (diff)
downloadbusybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.tar.gz
busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.tar.bz2
busybox-w32-76f4ab68a56e14747c25e6da830cf73b38bbe1cd.zip
Vodz, last_patch_86
git-svn-id: svn://busybox.net/trunk/busybox@6853 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/setup_environment.c')
-rw-r--r--libbb/setup_environment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/setup_environment.c b/libbb/setup_environment.c
index 30d317cea..b18f8967e 100644
--- a/libbb/setup_environment.c
+++ b/libbb/setup_environment.c
@@ -45,13 +45,13 @@
45static void xsetenv ( const char *key, const char *value ) 45static void xsetenv ( const char *key, const char *value )
46{ 46{
47 if ( setenv ( key, value, 1 )) 47 if ( setenv ( key, value, 1 ))
48 bb_error_msg_and_die ( "out of memory" ); 48 bb_error_msg_and_die (bb_msg_memory_exhausted);
49} 49}
50 50
51void setup_environment ( const char *shell, int loginshell, int changeenv, const struct passwd *pw ) 51void setup_environment ( const char *shell, int loginshell, int changeenv, const struct passwd *pw )
52{ 52{
53 if ( loginshell ) { 53 if ( loginshell ) {
54 char *term; 54 const char *term;
55 55
56 /* Change the current working directory to be the home directory 56 /* Change the current working directory to be the home directory
57 * of the user. It is a fatal error for this process to be unable 57 * of the user. It is a fatal error for this process to be unable