diff options
author | Ladislav Michl <Ladislav.Michl@seznam.cz> | 2010-06-27 03:23:31 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-27 03:23:31 +0200 |
commit | a73b87e9343df2a6f14e328a977e7b70eb3ed707 (patch) | |
tree | 564869bde93c870b20f6d4d8a3da71e42b629f2e /include | |
parent | 1b14cdb27ca5e8104a824424731be430c8592dd6 (diff) | |
download | busybox-w32-a73b87e9343df2a6f14e328a977e7b70eb3ed707.tar.gz busybox-w32-a73b87e9343df2a6f14e328a977e7b70eb3ed707.tar.bz2 busybox-w32-a73b87e9343df2a6f14e328a977e7b70eb3ed707.zip |
*: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdup
function old new delta
run_shell 157 166 +9
su_main 477 470 -7
sulogin_main 515 503 -12
Signed-off-by: Ladislav Michl <Ladislav.Michl@seznam.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 58719a85b..53b768d88 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1157,7 +1157,6 @@ char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC; | |||
1157 | extern void bb_do_delay(int seconds) FAST_FUNC; | 1157 | extern void bb_do_delay(int seconds) FAST_FUNC; |
1158 | extern void change_identity(const struct passwd *pw) FAST_FUNC; | 1158 | extern void change_identity(const struct passwd *pw) FAST_FUNC; |
1159 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; | 1159 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; |
1160 | extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) FAST_FUNC; | ||
1161 | #if ENABLE_SELINUX | 1160 | #if ENABLE_SELINUX |
1162 | extern void renew_current_security_context(void) FAST_FUNC; | 1161 | extern void renew_current_security_context(void) FAST_FUNC; |
1163 | extern void set_current_security_context(security_context_t sid) FAST_FUNC; | 1162 | extern void set_current_security_context(security_context_t sid) FAST_FUNC; |
@@ -1593,12 +1592,12 @@ extern struct globals *const ptr_to_globals; | |||
1593 | * use bb_default_login_shell and following defines. | 1592 | * use bb_default_login_shell and following defines. |
1594 | * If you change LIBBB_DEFAULT_LOGIN_SHELL, | 1593 | * If you change LIBBB_DEFAULT_LOGIN_SHELL, |
1595 | * don't forget to change increment constant. */ | 1594 | * don't forget to change increment constant. */ |
1596 | #define LIBBB_DEFAULT_LOGIN_SHELL "-/bin/sh" | 1595 | #define LIBBB_DEFAULT_LOGIN_SHELL "-/bin/sh" |
1597 | extern const char bb_default_login_shell[]; | 1596 | extern const char bb_default_login_shell[]; |
1598 | /* "/bin/sh" */ | 1597 | /* "/bin/sh" */ |
1599 | #define DEFAULT_SHELL (bb_default_login_shell+1) | 1598 | #define DEFAULT_SHELL (bb_default_login_shell+1) |
1600 | /* "sh" */ | 1599 | /* "sh" */ |
1601 | #define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) | 1600 | #define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) |
1602 | 1601 | ||
1603 | #if ENABLE_FEATURE_DEVFS | 1602 | #if ENABLE_FEATURE_DEVFS |
1604 | # define CURRENT_VC "/dev/vc/0" | 1603 | # define CURRENT_VC "/dev/vc/0" |