aboutsummaryrefslogtreecommitdiff
path: root/loginutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* deluser: do not warn spuriously when deleting group by deluserTito Ragusa2010-11-081-6/+14
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* delgroup: correct the check for users who still use the groupDenys Vlasenko2010-11-071-12/+12
| | | | | Signed-off-by: Tito <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-11-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* deluser: 2nd attempt at deluser/delgroup size reduction and improvementsTito Ragusa2010-11-061-29/+70
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: whitespace fixesDenys Vlasenko2010-10-284-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: free fromhost upon cleaning upAlexander Shishkin2010-10-281-0/+7
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use strcpy_and_process_escape_sequencesDenys Vlasenko2010-10-231-15/+3
| | | | | | | | | | | | function old new delta strcpy_and_process_escape_sequences - 50 +50 bb_process_escape_sequence 148 138 -10 printf_main 789 776 -13 getty_main 1897 1831 -66 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 50/-89) Total: -39 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add/remove-shell: use O_TRUNC instead of O_EXCLDenys Vlasenko2010-10-201-2/+10
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add-shell, remove-shell: new appletsAlexander Shishkin2010-10-201-0/+127
| | | | | | | | | | | | | | | | | function old new delta add_remove_shell_main - 259 +259 packed_usage 27408 27438 +30 applet_names 2326 2349 +23 applet_main 1364 1372 +8 applet_nameofs 682 686 +4 run_applet_and_exit 700 703 +3 dont_add - 2 +2 applet_install_loc 171 172 +1 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 6/0 up/down: 330/0) Total: 330 bytes Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* deluser: use the same licensing template in the header as other files doDenys Vlasenko2010-09-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* deluser: make it simpler, fix inability to delete user from groupHarald Becker2010-09-222-70/+68
| | | | | | | Also makes menuconfig order more sensible Signed-off-by: Harald Becker <ralda@gmx.de> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* getty: small code shrinkDenys Vlasenko2010-09-011-9/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-1612-14/+14
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vlock: disable linux console calls on other systemsJeremie Koenig2010-07-302-3/+13
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init,loginutils: termios portability fixesJeremie Koenig2010-07-193-16/+15
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mark Linux-specific configuration optionsJeremie Koenig2010-07-191-0/+3
| | | | | | | | PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdupLadislav Michl2010-06-273-37/+40
| | | | | | | | | | 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>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-082-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bbconfig: make it independent from printf functionsDenys Vlasenko2010-06-071-2/+1
| | | | | | | | | | | | | | function old new delta full_write2_str - 25 +25 full_write1_str - 25 +25 clear_main 21 20 -1 telnet_main 1488 1477 -11 getty_main 1932 1918 -14 full_write22_str 25 - -25 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51) Total: -1 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-20/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-042-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: do not emit bogus error message on EOFDenys Vlasenko2010-05-221-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: add skip_dev_pfx()Denys Vlasenko2010-04-061-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move utmp/wtmp support to "General configuration" sectionDenys Vlasenko2010-04-061-16/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363Denys Vlasenko2010-04-052-4/+6
| | | | | | | | | | | | | | | | | function old new delta write_new_utmp - 253 +253 skip_dev_pfx - 30 +30 handle_sigchld 42 72 +30 telnetd_main 1650 1673 +23 make_new_session 415 438 +23 ... login_main 1140 1148 +8 update_utmp 337 313 -24 write_wtmp 220 154 -66 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 11/6 up/down: 406/-115) Total: ~291 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split update_utmp from login/getty in preparation to use it for telnetdDenys Vlasenko2010-04-052-157/+16
| | | | | | | | | | | | | | | | | | | function old new delta update_utent - 339 +339 login_main 1498 1128 -370 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 339/-370) Total: -31 bytes function old new delta update_utmp 246 337 +91 login_main 1128 1140 +12 getty_main 1908 1918 +10 ... update_utent 339 - -339 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 5/6 up/down: 119/-368) Total: -249 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* who: fix attempts to open '/dev/dev/ttyX'; make columns a bit wider, add -HDenys Vlasenko2010-04-041-1/+2
| | | | | | | function old new delta who_main 292 363 +71 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: move restricted_shell into su.c (the only user)Denys Vlasenko2010-02-261-1/+18
| | | | | | | | | | | | | | | | | | function old new delta su_main 448 468 +20 buffer_fill_and_print 179 196 +17 scriptreplay_main 205 208 +3 localcmd 275 277 +2 hash_find 233 234 +1 devmem_main 469 463 -6 install_main 724 716 -8 setusershell 11 - -11 find_pair 187 169 -18 restricted_shell 49 - -49 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 5/3 up/down: 43/-92) Total: -49 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* setup_environment(): eliminate one parameterDenys Vlasenko2010-02-262-4/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crontab: use setup_environmentBernhard Reutner-Fischer2010-02-261-1/+1
| | | | | | | | | | function old new delta setup_environment 184 198 +14 .rodata 131770 131747 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-23) Total: -9 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* adduser: copy /etc/skel to mew homes. +100 bytesDenys Vlasenko2010-02-061-2/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove now-unneeded memsetDenys Vlasenko2010-02-011-3/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: create a group for net user tooDenys Vlasenko2010-01-101-13/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd: do not complain about /etc/shadow needlesslyDenys Vlasenko2010-01-091-4/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: more fixes to "add user to specified group"Denys Vlasenko2010-01-091-3/+4
| | | | | | | | function old new delta update_passwd 1246 1295 +49 adduser_main 727 725 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: fix a logical inversion which made -G GRP inoperativeTito Ragusa2010-01-091-1/+1
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: robustify isXXXX(). +39 bytesDenys Vlasenko2009-11-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-132-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd: do not complain if /etc/shadow is missingDenys Vlasenko2009-11-021-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use ffulsh_all()Denys Vlasenko2009-11-021-3/+3
| | | | | | | | | | | | | | | | | | | | function old new delta buffer_fill_and_print 179 196 +17 fflush_all - 9 +9 spawn 87 92 +5 rtcwake_main 455 453 -2 ... alarm_intr 93 84 -9 readcmd 1072 1062 -10 bb_ask 345 333 -12 more_main 845 832 -13 flush_stdout_stderr 42 23 -19 xfflush_stdout 27 - -27 flush_stderr 30 - -30 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: random code shrinkDenys Vlasenko2009-10-291-1/+1
| | | | | | | | | function old new delta alarm_handler 50 46 -4 ask 228 211 -17 rtcwake_main 474 455 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize most of isXXXXX() macrosDenys Vlasenko2009-10-231-4/+7
| | | | | | | | text data bss dec hex filename 824164 453 6812 831429 cafc5 busybox_old 823730 453 6812 830995 cae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: a few more NOINLINEsDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta print_linkinfo - 815 +815 do_msg - 783 +783 INET_setroute - 757 +757 varvalue - 746 +746 do_sem - 637 +637 inflate_codes - 617 +617 INET6_setroute - 491 +491 edir - 370 +370 sync_cursor - 298 +298 update_utmp - 246 +246 searchLines - 165 +165 setup_alarm - 144 +144 may_wakeup - 101 +101 getNum 566 371 -195 refresh 1166 848 -318 rtcwake_main 809 479 -330 getty_main 2396 1921 -475 chpst_main 1373 746 -627 inflate_unzip_internal 1335 567 -768 evalvar 1384 612 -772 ipaddr_list_or_flush 2160 1246 -914 route_main 1585 245 -1340 ipcs_main 2523 1049 -1474 ------------------------------------------------------------------------------ (add/remove: 13/0 grow/shrink: 0/10 up/down: 6170/-7213) Total: -1043 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: log PAM errors to syslog, not stderrDenys Vlasenko2009-09-251-1/+3
| | | | | | By Ian Wienand (ianw AT vmware.com) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* a few more GCC-isms removedDenys Vlasenko2009-09-091-5/+18
| | | | | | | | text data bss dec hex filename 824641 458 6956 832055 cb237 busybox_old 824631 458 6956 832045 cb22d busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>