diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-12 13:21:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-12 13:21:33 +0100 |
commit | cca7c611f26d98415c0f986e5a5e731ab5e379ff (patch) | |
tree | a080a096774447299f7772bc5c5e6a47d2a9ef0f /libbb/messages.c | |
parent | 3bb3e1d0a1eed01306e22e59db8de6c2d945165a (diff) | |
download | busybox-w32-cca7c611f26d98415c0f986e5a5e731ab5e379ff.tar.gz busybox-w32-cca7c611f26d98415c0f986e5a5e731ab5e379ff.tar.bz2 busybox-w32-cca7c611f26d98415c0f986e5a5e731ab5e379ff.zip |
which: fix TODO with NOFORK+malloc_failure misbehaving
function old new delta
find_executable 86 104 +18
which_main 202 194 -8
executable_exists 66 51 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 18/-23) Total: -5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/messages.c')
-rw-r--r-- | libbb/messages.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 0a6cf3bf8..6914d5701 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -6,11 +6,6 @@ | |||
6 | */ | 6 | */ |
7 | #include "libbb.h" | 7 | #include "libbb.h" |
8 | 8 | ||
9 | /* allow default system PATH to be extended via CFLAGS */ | ||
10 | #ifndef BB_ADDITIONAL_PATH | ||
11 | #define BB_ADDITIONAL_PATH "" | ||
12 | #endif | ||
13 | |||
14 | /* allow version to be extended, via CFLAGS */ | 9 | /* allow version to be extended, via CFLAGS */ |
15 | #ifndef BB_EXTRA_VERSION | 10 | #ifndef BB_EXTRA_VERSION |
16 | #define BB_EXTRA_VERSION " ("AUTOCONF_TIMESTAMP")" | 11 | #define BB_EXTRA_VERSION " ("AUTOCONF_TIMESTAMP")" |
@@ -36,8 +31,7 @@ const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; | |||
36 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; | 31 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; |
37 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 32 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, |
38 | * but I want to save a few bytes here. Check libbb.h before changing! */ | 33 | * but I want to save a few bytes here. Check libbb.h before changing! */ |
39 | const char bb_PATH_root_path[] ALIGN1 = | 34 | const char bb_PATH_root_path[] ALIGN1 = BB_PATH_ROOT_PATH; |
40 | "PATH=/sbin:/usr/sbin:/bin:/usr/bin" BB_ADDITIONAL_PATH; | ||
41 | 35 | ||
42 | 36 | ||
43 | //const int const_int_1 = 1; | 37 | //const int const_int_1 = 1; |