diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-12 22:35:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-12 22:35:19 +0000 |
commit | f5f75c5e82d47613847c356664e47c4be69e73aa (patch) | |
tree | e71a09d744a9db75a1cbe6cb73d55e71a435e7d1 /init/init.c | |
parent | f312e32662f6d98f86c68d8f781b3255547f8200 (diff) | |
download | busybox-w32-f5f75c5e82d47613847c356664e47c4be69e73aa.tar.gz busybox-w32-f5f75c5e82d47613847c356664e47c4be69e73aa.tar.bz2 busybox-w32-f5f75c5e82d47613847c356664e47c4be69e73aa.zip |
remove nearly-duplicate PATHs in several places
function old new delta
bb_PATH_root_path - 35 +35
varunset 60 58 -2
arith 2042 2033 -9
bb_default_root_login_path 30 - -30
.rodata 128794 128762 -32
which_main 152 117 -35
defpathvar 40 - -40
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/init/init.c b/init/init.c index cb83b088d..6fcdc03c1 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -24,10 +24,6 @@ | |||
24 | #define CONSOLE_NAME_SIZE 32 | 24 | #define CONSOLE_NAME_SIZE 32 |
25 | #define MAXENV 16 /* Number of env. vars */ | 25 | #define MAXENV 16 /* Number of env. vars */ |
26 | 26 | ||
27 | #ifndef _PATH_STDPATH | ||
28 | #define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
29 | #endif | ||
30 | |||
31 | #if ENABLE_FEATURE_INIT_COREDUMPS | 27 | #if ENABLE_FEATURE_INIT_COREDUMPS |
32 | /* | 28 | /* |
33 | * When a file named CORE_ENABLE_FLAG_FILE exists, setrlimit is called | 29 | * When a file named CORE_ENABLE_FLAG_FILE exists, setrlimit is called |
@@ -112,7 +108,7 @@ enum { | |||
112 | 108 | ||
113 | static const char * const environment[] = { | 109 | static const char * const environment[] = { |
114 | "HOME=/", | 110 | "HOME=/", |
115 | "PATH=" _PATH_STDPATH, | 111 | bb_PATH_root_path, |
116 | "SHELL=/bin/sh", | 112 | "SHELL=/bin/sh", |
117 | "USER=root", | 113 | "USER=root", |
118 | NULL | 114 | NULL |