diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:42:43 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:42:43 +0000 |
commit | cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2 (patch) | |
tree | f3c72eba4318ead484dfb36c6e21d55f443c5f6b /include/libbb.h | |
parent | 107fe7c081c2e0ab96628b431d9d812cdf9c82b2 (diff) | |
download | busybox-w32-cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2.tar.gz busybox-w32-cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2.tar.bz2 busybox-w32-cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2.zip |
dos2unix: tiny shrink
login,su: fix setup_environment() so that it works as intended
(parameter names were a bit misleading)
fdisk: shrink
help text: shrink
function old new delta
login_main 1658 1701 +43
setup_environment 206 203 -3
dos_compatible_flag 4 1 -3
dos2unix_main 383 375 -8
get_boot 1724 1702 -22
fdisk_main 2949 2889 -60
packed_usage 24250 23948 -302
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/6 up/down: 43/-398) Total: -355 bytes
text data bss dec hex filename
798768 661 7428 806857 c4fc9 busybox_old
798327 658 7428 806413 c4e0d busybox_unstripped
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 73638a145..09deba671 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -941,20 +941,20 @@ extern void selinux_or_die(void); | |||
941 | extern int restricted_shell(const char *shell); | 941 | extern int restricted_shell(const char *shell); |
942 | 942 | ||
943 | /* setup_environment: | 943 | /* setup_environment: |
944 | * if loginshell = 1: cd(pw->pw_dir), clear environment, then set | 944 | * if clear_env = 1: cd(pw->pw_dir), clear environment, then set |
945 | * TERM=(old value) | 945 | * TERM=(old value) |
946 | * USER=pw->pw_name, LOGNAME=pw->pw_name | 946 | * USER=pw->pw_name, LOGNAME=pw->pw_name |
947 | * PATH=bb_default_[root_]path | 947 | * PATH=bb_default_[root_]path |
948 | * HOME=pw->pw_dir | 948 | * HOME=pw->pw_dir |
949 | * SHELL=shell | 949 | * SHELL=shell |
950 | * else if changeenv = 1: | 950 | * else if change_env = 1: |
951 | * if not root (if pw->pw_uid != 0): | 951 | * if not root (if pw->pw_uid != 0): |
952 | * USER=pw->pw_name, LOGNAME=pw->pw_name | 952 | * USER=pw->pw_name, LOGNAME=pw->pw_name |
953 | * HOME=pw->pw_dir | 953 | * HOME=pw->pw_dir |
954 | * SHELL=shell | 954 | * SHELL=shell |
955 | * else does nothing | 955 | * else does nothing |
956 | */ | 956 | */ |
957 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); | 957 | extern void setup_environment(const char *shell, int clear_env, int change_env, const struct passwd *pw); |
958 | extern int correct_password(const struct passwd *pw); | 958 | extern int correct_password(const struct passwd *pw); |
959 | /* Returns a ptr to static storage */ | 959 | /* Returns a ptr to static storage */ |
960 | extern char *pw_encrypt(const char *clear, const char *salt); | 960 | extern char *pw_encrypt(const char *clear, const char *salt); |