summaryrefslogtreecommitdiff
path: root/loginutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* getty: a small code shrinkDenis Vlasenko2007-12-041-34/+33
| | | | | | | touch - 40 +40 fakehost 4 - -4 getty_main 2546 2493 -53
* getty: don't accept ancient '#' and '@' as backspace/kill line,Denis Vlasenko2007-12-041-227/+165
| | | | | | | | | | | | | | | | | it only confuses people. (Alexander Griesser <alexander.griesser@lkh-vil.or.at> (LKH Villach)) various other cleanups. function old new delta getty_main 2526 2546 +20 static.baud_index 4 - -4 parse_speeds 91 - -91 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/0 up/down: 20/-95) Total: -75 bytes text data bss dec hex filename 773152 1086 9008 783246 bf38e busybox_old 773081 1086 9008 783175 bf347 busybox_unstripped
* xreadlink: code shrinkDenis Vlasenko2007-11-081-2/+1
| | | | | | | | | | udhcp: add missing tryagain member to client_config function old new delta xmalloc_readlink_follow 169 154 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-15) Total: -15 bytes
* flush typeahead before promptPaul Fox2007-11-071-0/+4
|
* login: fix PAM login (was unable to complete Kerberos login)Denis Vlasenko2007-11-071-23/+42
|
* login: clear dangerous environment variables if started by non-rootDenis Vlasenko2007-11-062-25/+14
|
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-1/+3
| | | | | | readahead: stop using stdio.h *: style fixes
* Announce 1.8.01_8_0Denis Vlasenko2007-11-041-2/+2
|
* appletlib.c: make it actally follow _BB_SUID_ALWAYS rulesDenis Vlasenko2007-10-294-136/+102
| | | | | | | | | | adduser: implement -S and code shrink / fix uid selection *: sanitize getspnam_r use text data bss dec hex filename 777042 974 9676 787692 c04ec busybox_old 776883 974 9676 787533 c044d busybox_unstripped
* bb_askpass: handle Ctrl-C, restore termoios on Ctrl-C.Denis Vlasenko2007-10-201-30/+31
| | | | | | | | | | sulogin: remove alarm handling, as it is redundant there. code shrink. After all differences cancel out: text data bss dec hex filename 777543 1000 9532 788075 c066b busybox_old 777543 1000 9532 788075 c066b busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-1111-11/+11
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-011-1/+1
| | | | | 263 bytes saved.
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-1/+1
|
* vlock: get rid of staticsDenis Vlasenko2007-09-271-18/+18
|
* setup_environment: code shrinkDenis Vlasenko2007-09-103-8/+13
| | | | | | | | | | | | | | | | | | | | run_shell: mark as NORETURN setup_environment, run_shell: add usage comments login: add FIXME :( function old new delta UNSPEC_print 64 66 +2 sulogin_main 509 506 -3 mkfs_minix_main 3070 3067 -3 login_main 1615 1612 -3 su_main 461 448 -13 setup_environment 261 206 -55 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/5 up/down: 2/-77) Total: -75 bytes text data bss dec hex filename 772578 1051 10724 784353 bf7e1 busybox_old 772502 1051 10724 784277 bf795 busybox_unstripped
* login: do reject wrong passwords with PAM authDenis Vlasenko2007-09-031-12/+21
|
* login: fixes for PAM buildDenis Vlasenko2007-08-221-2/+6
|
* login: optional support for PAMDenis Vlasenko2007-08-212-7/+66
|
* libbb,crond,lash: fix getopt32 (don't know how it managed to slip through)Denis Vlasenko2007-08-191-9/+5
| | | | | *: fcntl(fd, F_GETFL) doesn't require third parameter at all.
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-1810-10/+10
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* introduce and use xdup2(int, int)Denis Vlasenko2007-08-181-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* whitespace fixes, no code changesDenis Vlasenko2007-08-161-1/+1
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-124-5/+6
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* addgroup: "disallow addgroup -g num user group"; make -g 0 workDenis Vlasenko2007-07-302-28/+36
| | | | | (Tito <farmatito@tiscali.it>)
* passwd: fix bug: we are trying to update shadow even if user's record is in ↵Denis Vlasenko2007-07-271-5/+15
| | | | | | | passwd! getspnam is guilty, it lies that user record exists in shadow.
* bb_getpwuid, bb_getgrgid: change order of arguments to more intuitive one;Denis Vlasenko2007-07-271-10/+15
| | | | | comment thoroughly when they die and when they dont.
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-1/+1
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* chpasswd: rename long options definition to match other applets. no code changesDenis Vlasenko2007-07-231-2/+2
|
* rework long option handling. saves ~1.2kDenis Vlasenko2007-07-231-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta tar_longopts - 222 +222 static.udhcpc_longopts - 192 +192 start_stop_daemon_longopts - 150 +150 getopt32 1045 1185 +140 static.wget_longopts - 111 +111 static.od_longopts - 105 +105 getopt_longopts - 96 +96 install_longopts - 67 +67 ipcalc_longopts - 63 +63 static.hwclock_longopts - 54 +54 ftpgetput_longopts - 52 +52 static.dumpleases_longopts - 32 +32 env_longopts - 31 +31 runparts_longopts - 30 +30 mv_longopts - 24 +24 mkdir_longopts - 19 +19 find_pair 164 180 +16 bb_null_long_options - 16 +16 setconsole_longopts - 10 +10 display_speed 91 98 +7 collect_blk 467 474 +7 show_color 4 1 -3 ls_main 913 904 -9 bb_default_long_options 16 - -16 ls_color_opt 32 10 -22 setconsole_long_options 32 - -32 arith 2077 2030 -47 mv_long_options 48 - -48 mkdir_long_options 48 - -48 env_long_options 48 - -48 static.options 248 184 -64 runparts_long_options 80 - -80 ftpgetput_long_options 96 - -96 static.hwclock_long_options 112 - -112 install_long_options 112 - -112 static.long_options 144 - -144 static.wget_long_options 160 - -160 longopts 160 - -160 static.arg_options 304 - -304 tar_long_options 320 - -320 long_options 384 - -384 ------------------------------------------------------------------------------ (add/remove: 17/15 grow/shrink: 4/5 up/down: 1444/-2209) Total: -765 bytes text data bss dec hex filename 782618 1328 11900 795846 c24c6 busybox_old 781354 1328 11900 794582 c1fd6 busybox_unstripped
* chpasswd: fix indentationDenis Vlasenko2007-07-211-1/+1
|
* chpasswd: fixes for shadow password handlingDenis Vlasenko2007-07-211-10/+12
|
* chpasswd: fixes and code shrinkDenis Vlasenko2007-07-211-17/+12
| | | | | | | | | | | update_passwd 732 734 +2 chpasswd_main 318 292 -26 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-26) Total: -24 bytes text data bss dec hex filename 781564 1168 11900 794632 c2008 busybox_old 781548 1168 11900 794616 c1ff8 busybox_unstripped
* chpasswd: now with svn addDenis Vlasenko2007-07-201-0/+77
|
* chpasswd: new applet by Alexander Shishkin <virtuoso@slind.org>Denis Vlasenko2007-07-204-117/+17
|
* adduser: close /etc/{passwd,shadow} before calling passwd etc.Denis Vlasenko2007-07-141-5/+5
| | | | | Spotted by Natanael Copa <natanael.copa@gmail.com>
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-142-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko2007-06-141-2/+3
| | | | | | init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
* login: make /etc/nologin support configurable. -240 bytes if not selected.Denis Vlasenko2007-06-122-11/+23
|
* login: ask passwords even for wrong usernames.Denis Vlasenko2007-06-081-4/+3
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 680099 2704 15648 698451 aa853 busybox_old 680110 2704 15648 698462 aa85e busybox_unstripped
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-6/+5
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko2007-05-311-1/+0
| | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
* whitespace fixesDenis Vlasenko2007-05-304-8/+8
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-2610-10/+10
| | | | | *: s/include "busybox.h"/include "libbb.h"
* cryptpw: size reductionDenis Vlasenko2007-05-091-18/+9
| | | | | | | | function old new delta cryptpw_main 198 140 -58 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-58) Total: -58 bytes
* cryptpw: forgot svn add... how typical of me :(Denis Vlasenko2007-05-081-0/+37
|
* cryptpw: new applet (a bit less than 3k added)Denis Vlasenko2007-05-083-50/+7
| | | | | (by Thomas Lundquist <lists@zelow.no>)
* deluser: add optional support for removing users from groupsDenis Vlasenko2007-04-152-53/+103
| | | | (by Tito <farmatito@tiscali.it>)
* login: fixing my brainfart: xspawn(t_argv) <- was using argv!Denis Vlasenko2007-04-121-1/+1
|
* login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko2007-04-121-20/+25
| | | | | login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
* - clean up addgroup, fix adding users to existing groups and make it ↵Bernhard Reutner-Fischer2007-04-052-41/+111
| | | | optional (Tito)