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 /include | |
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 'include')
-rw-r--r-- | include/libbb.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index daccf154a..5f25b5dde 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -2005,10 +2005,16 @@ extern const char bb_path_wtmp_file[] ALIGN1; | |||
2005 | 2005 | ||
2006 | #define bb_dev_null "/dev/null" | 2006 | #define bb_dev_null "/dev/null" |
2007 | extern const char bb_busybox_exec_path[] ALIGN1; | 2007 | extern const char bb_busybox_exec_path[] ALIGN1; |
2008 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 2008 | /* allow default system PATH to be extended via CFLAGS */ |
2009 | * but I want to save a few bytes here */ | 2009 | #ifndef BB_ADDITIONAL_PATH |
2010 | extern const char bb_PATH_root_path[] ALIGN1; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */ | 2010 | #define BB_ADDITIONAL_PATH "" |
2011 | #endif | ||
2012 | #define BB_PATH_ROOT_PATH "PATH=/sbin:/usr/sbin:/bin:/usr/bin" BB_ADDITIONAL_PATH | ||
2013 | extern const char bb_PATH_root_path[] ALIGN1; /* BB_PATH_ROOT_PATH */ | ||
2011 | #define bb_default_root_path (bb_PATH_root_path + sizeof("PATH")) | 2014 | #define bb_default_root_path (bb_PATH_root_path + sizeof("PATH")) |
2015 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | ||
2016 | * but I want to save a few bytes here: | ||
2017 | */ | ||
2012 | #define bb_default_path (bb_PATH_root_path + sizeof("PATH=/sbin:/usr/sbin")) | 2018 | #define bb_default_path (bb_PATH_root_path + sizeof("PATH=/sbin:/usr/sbin")) |
2013 | 2019 | ||
2014 | extern const int const_int_0; | 2020 | extern const int const_int_0; |