From f5f75c5e82d47613847c356664e47c4be69e73aa Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 12 Jun 2007 22:35:19 +0000 Subject: 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 --- init/init.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index cb83b08..6fcdc03 100644 --- a/init/init.c +++ b/init/init.c @@ -24,10 +24,6 @@ #define CONSOLE_NAME_SIZE 32 #define MAXENV 16 /* Number of env. vars */ -#ifndef _PATH_STDPATH -#define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" -#endif - #if ENABLE_FEATURE_INIT_COREDUMPS /* * When a file named CORE_ENABLE_FLAG_FILE exists, setrlimit is called @@ -112,7 +108,7 @@ enum { static const char * const environment[] = { "HOME=/", - "PATH=" _PATH_STDPATH, + bb_PATH_root_path, "SHELL=/bin/sh", "USER=root", NULL -- cgit v1.1