aboutsummaryrefslogtreecommitdiff
path: root/loginutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add comment about /etc/gshadow, no code changesDenys Vlasenko2009-07-132-2/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd + /etc/shadow: chage "change time" field tooDenys Vlasenko2009-07-131-1/+12
| | | | | | | function old new delta update_passwd 1171 1270 +99 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: fix "df /"Denys Vlasenko2009-07-051-1/+1
| | | | | | | | | | | | | | | | | | | also, clean up mount checks in mkfs/fsck. function old new delta find_mount_point 243 261 +18 sha1_process_block64 497 510 +13 find_main 436 444 +8 display_speed 85 90 +5 df_main 795 793 -2 parse_command 1463 1460 -3 static.ignored_mounts 8 - -8 mkfs_minix_main 2962 2937 -25 fsck_minix_main 3065 2970 -95 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Patches to enable FreeBSD buildDenys Vlasenko2009-07-051-0/+4
| | | | | | | | | platform.h: fix wrong check for endianness, fix lchown aliasing to chown on uclibc. Code seems to not be affected in my testing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTSDenys Vlasenko2009-06-193-5/+5
| | | | | Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* flash_lock, flash_unlock: new appletsDenys Vlasenko2009-05-251-1/+1
| | | | | | | By Thierry Reding (thierry.reding AT avionic-design.de) Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser/addgroup: make system id range configurable.Denys Vlasenko2009-05-143-8/+32
| | | | | | By Tito (farmatito AT tiscali.it). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser/addgroup: support specifying uid/gid, add systemDenis Vlasenko2009-04-223-42/+110
| | | | | | | | | | | | | | account creation mode. By Tito. function old new delta adduser_main 650 726 +76 addgroup_main 341 402 +61 addgroup_longopts - 16 +16 adduser_longopts 97 103 +6 packed_usage 26161 26163 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 161/0) Total: 161 bytes
* switch_root: improve behavior on error; improve help textDenis Vlasenko2009-04-211-1/+1
| | | | | *: make "can't execute '%s'" message uniform
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-214-9/+9
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* pointless whitespace/comment fixes, no code changesDenis Vlasenko2009-04-141-3/+3
|
* *: unify concurrent-safe update of /etc/{passwd,group,[g]shadow}Denis Vlasenko2009-04-145-198/+60
| | | | | | | | | | | | | | | | | | | | | | | by Tito (farmatito AT tiscali.it) function old new delta update_passwd 743 1171 +428 bb_perror_nomsg - 9 +9 find_main 436 444 +8 passwd_main 1023 1027 +4 nameval 202 206 +4 chpasswd_main 315 319 +4 bb__parsespent 119 117 -2 adduser_main 654 650 -4 addgroup_main 345 341 -4 sv_main 1228 1222 -6 deluser_main 173 160 -13 bb_internal_putpwent 69 - -69 add_user_to_group 231 - -231 del_line_matching 460 31 -429 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 5/6 up/down: 457/-758) Total: -301 bytes
* getty: fix handling of speed 0;Denis Vlasenko2009-04-121-10/+14
| | | | | | | | | | stop using non-portable way of setting speeds. function old new delta cfsetispeed - 76 +76 cfsetospeed - 57 +57 cfgetispeed - 20 +20
* patch by Stuart Hughes <seh@zee2.com> and Guenter <lists@gknw.net> to make ↵Mike Frysinger2009-04-091-1/+7
| | | | "0" a special baud rate for getty where it uses this as "leave baud rate unchanged"
* trailing whitespace removalDenis Vlasenko2009-04-011-1/+1
|
* randomtest fixesDenis Vlasenko2009-03-281-0/+2
|
* *: remove LOG_NOWAITDenis Vlasenko2009-03-112-2/+2
|
* *: move get_sock_lsa and xwrite_str to libbb, use where appropriateDenis Vlasenko2009-03-092-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta get_sock_lsa - 72 +72 buffer_fill_and_print 179 196 +17 parse_expr 824 832 +8 read_base64 343 348 +5 nameval 202 206 +4 fbset_main 1694 1698 +4 expand 1849 1853 +4 udhcp_send_kernel_packet 249 252 +3 udhcp_get_option 223 222 -1 chat_main 1246 1245 -1 pack_gzip 1661 1659 -2 doset 299 297 -2 bb__parsespent 119 117 -2 test_main 260 257 -3 qgravechar 109 106 -3 tcpudpsvd_main 1834 1830 -4 sysctl_display_all 589 580 -9 xopen_xwrite_close 44 33 -11 prs 30 18 -12 find_main 418 406 -12 full_write2_str 25 12 -13 adduser_main 667 654 -13 evaltreenr 817 802 -15 evaltree 817 802 -15 tftpd_main 526 493 -33 ftpd_main 2050 1990 -60 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
* login: fix buglet introduced by "simplification"Denis Vlasenko2009-02-241-1/+1
|
* login: small simplification by Walter Harms. -10 bytesDenis Vlasenko2009-02-021-10/+8
|
* login: cleanup work by Walter Harms. No logic changes.Denis Vlasenko2009-02-021-46/+56
|
* adduser: allow adding to group 0; don't _create_ /etc/shadow,Denis Vlasenko2009-01-121-13/+15
| | | | | | | | only append data if it exists. function old new delta adduser_main 642 667 +25
* - isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spotBernhard Reutner-Fischer2009-01-091-1/+1
|
* libbb: introduce and use xmalloc_ttyname (-32 in bss).Denis Vlasenko2008-12-232-5/+5
| | | | | | | | | ash: small code shrink text data bss dec hex filename 793669 504 7524 801697 c3ba1 busybox_old 793659 504 7492 801655 c3b77 busybox_unstripped
* Fix forgotten license commentsDenis Vlasenko2008-12-071-0/+2
|
* libbb: add xgetgrnam too. ~0 code size changeDenis Vlasenko2008-12-051-3/+1
|
* - -4b and use proper define; add license noteBernhard Reutner-Fischer2008-12-041-3/+5
|
* Fold mkpasswd applet into cryptpw.Denis Vlasenko2008-12-044-137/+95
| | | | | | | | | | | | | | | | mkpasswd is in Debian, OTOH cryptpw was added to busybox earlier. Trying to make both camps happy by making those two applets just aliases. They are command-line compatible. We can decide whether we want to drop one (and which one) later. function old new delta cryptpw_main 183 314 +131 static.methods 21 - -21 packed_usage 25707 25648 -59 mkpasswd_main 307 - -307 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/1 up/down: 131/-387) Total: -256 bytes
* libbb: introduce and use xgetpwnam. ~ -150 bytes.Denis Vlasenko2008-12-033-6/+3
|
* - add new applet mkpasswd(1)Bernhard Reutner-Fischer2008-12-035-7/+86
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_ask - 355 +355 mkpasswd_main - 296 +296 .rodata 121746 121847 +101 packed_usage 24632 24689 +57 static.methods - 21 +21 gmatch 229 248 +19 bb_ask_stdin - 11 +11 applet_names 1949 1958 +9 applet_main 1172 1176 +4 sulogin_main 503 505 +2 applet_nameofs 586 588 +2 sha256_hash 329 327 -2 correct_password 208 206 -2 parse_command 1442 1439 -3 get_cred_or_die 145 141 -4 passwd_main 1054 1044 -10 bb_askpass 348 - -348 ------------------------------------------------------------------------------ (add/remove: 4/1 grow/shrink: 7/5 up/down: 877/-369) Total: 508 bytes
* libbb: password/group function helpers rewritten by Tito:Denis Vlasenko2008-12-022-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta xgetpwuid - 27 +27 uid2uname_utoa - 22 +22 gid2group_utoa - 22 +22 uid2uname - 18 +18 gid2group - 18 +18 buffer_fill_and_print 179 196 +17 print_user 12 24 +12 print_group 12 24 +12 get_cached 89 99 +10 ... print_common 134 120 -14 vlock_main 415 396 -19 logger_main 410 387 -23 crontab_main 642 609 -33 bb_getpwuid 42 - -42 bb_getgrgid 42 - -42 bb_getug 80 - -80 ------------------------------------------------------------------------------ (add/remove: 6/3 grow/shrink: 9/11 up/down: 187/-296) Total: -109 bytes
* remove a few superfluous includesDenis Vlasenko2008-11-251-1/+0
|
* libbb: remove glibc-style bloat from sha_crypt. -1130 bytes.Denis Vlasenko2008-11-131-2/+7
| | | | | cryptpw: add more difficult test vectors.
* libbb: add optionl support for SHA256/512 encrypted passwordsDenis Vlasenko2008-11-102-8/+34
| | | | | | | | | | | | | | | function old new delta sha_crypt - 2423 +2423 cryptpw_main 128 183 +55 to64 - 29 +29 pw_encrypt 974 1000 +26 str_rounds - 11 +11 login_main 1532 1541 +9 packed_usage 25215 25200 -15 __md5_to64 29 - -29 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 3/1 up/down: 2553/-44) Total: 2509 bytes
* *: a bit of code shrinkDenis Vlasenko2008-11-092-4/+5
| | | | | | | | | | | | | | function old new delta stop_handler 41 38 -3 sulogin_main 508 504 -4 got_cont 4 - -4 cont_handler 11 - -11 startservice 309 297 -12 processorstart 423 409 -14 tcpudpsvd_main 1861 1843 -18 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
* move documentation to docs/Denis Vlasenko2008-11-081-424/+0
|
* login: fix /etc/nologin handling (should prohibit non-root LOGINS,Denis Vlasenko2008-11-071-36/+44
| | | | | | | | not running login by non-root). minor code shrink. function old new delta login_main 1669 1602 -67
* login: fix /etc/nologin supportDenis Vlasenko2008-11-071-8/+15
| | | | | | | | | | | build system: fix config warnings ("Overlong line") function old new delta login_main 1735 1774 +39 __libc_tcdrain - 23 +23 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 62/0) Total: 62 bytes
* *: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, ↵Denis Vlasenko2008-11-052-9/+11
| | | | | | | | | | | | | | | | | | | | | | xx) op function old new delta tcsetattr_stdin_TCSANOW - 14 +14 set_sane_term 116 113 -3 top_main 1277 1273 -4 make_new_session 421 415 -6 rawmode 133 126 -7 reset_term 18 10 -8 die 43 35 -8 cookmode 62 54 -8 vlock_main 425 415 -10 read_line_input 3165 3155 -10 bb_askpass 357 347 -10 fsck_minix_main 3079 3065 -14 getty_main 2375 2332 -43 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/12 up/down: 14/-131) Total: -117 bytes
* add serial HOWTO docDenis Vlasenko2008-11-051-0/+424
|
* more whitespace fixesDenis Vlasenko2008-10-291-1/+1
|
* whitespace fixes, no code changesDenis Vlasenko2008-10-291-6/+6
|
* halt: reinstate -w even if !FEATURE_WTMP; beautify code in halt.cDenis Vlasenko2008-09-111-4/+1
|
* - don't free user-supplied string (via -e)Bernhard Reutner-Fischer2008-08-051-3/+3
| | | | | | | | | | | | - fix helptext function old new delta chpasswd_main 300 319 +19 packed_usage 24352 24344 -8 .rodata 122227 122195 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 19/-40) Total: -21 bytes
* fix several problems with config parser:Denis Vlasenko2008-07-261-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* - wrap overlong lines (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer2008-07-221-12/+12
| | | | - s/\. /. /g;# (me)
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-212-23/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* - first pass to unify/cleanup uid handling (-236b)Bernhard Reutner-Fischer2008-07-212-3/+4
| | | | This needs further love, alot of love.. Tito?
* config help fixesDenis Vlasenko2008-07-161-1/+1
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-0510-15/+15
|