aboutsummaryrefslogtreecommitdiff
path: root/loginutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* convert "do {...} while (1);" -> "while (1) {...}"Denys Vlasenko2011-03-021-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: use better argv passing to addgroupDenys Vlasenko2011-02-271-9/+18
| | | | | | | function old new delta adduser_main 855 882 +27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty config help: fix example scriptDenys Vlasenko2011-02-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: extend its config helpDenys Vlasenko2011-02-101-1/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2011-02-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix "ifdef CMSPAR"Denys Vlasenko2011-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: restore CRTSCTS commentDenys Vlasenko2011-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: do clear CLOCAL and CRTSCTS unless told otherwiseDenys Vlasenko2011-01-261-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: do not clear all c_cflag's (we were clearing baud bits!)Denys Vlasenko2011-01-261-12/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: wait up to 5 seconds for the output buffer to drainPeter Korsgaard2011-01-261-23/+33
| | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: document bits we don't set - maybe we should set some of them?Denys Vlasenko2011-01-261-7/+59
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add ECHOE explanationDenys Vlasenko2011-01-261-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: explain every bit in termios; remove redundant stuff in termios_finalDenys Vlasenko2011-01-261-36/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move utmp.h include to libbb.hDenys Vlasenko2011-01-253-9/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: flush _only_ input after switching to the next baud rateDenys Vlasenko2011-01-241-1/+1
| | | | | | | It was originally like this, but at some point TCIFLUSH was inadvertently changed to TCIOFLUSH. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: simplify macros; improve VSWTC[H] compatDenys Vlasenko2011-01-241-9/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: more simplifications; explain how we treat parity nowDenys Vlasenko2011-01-241-95/+93
| | | | | | | function old new delta getty_main 1471 1434 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: simplify code by going to more straignforward G trickDenys Vlasenko2011-01-241-275/+121
| | | | | | | function old new delta getty_main 1615 1475 -140 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add sleep before initial tcdrain; reduce another sleep from 1 to 0.1sDenys Vlasenko2011-01-241-9/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: use cfsetspeed to save some bytes; cosmetic fixesDenys Vlasenko2011-01-241-30/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: more correct check for O_RDWRDenys Vlasenko2011-01-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: comment out parity detection code; improve usage textDenys Vlasenko2011-01-221-40/+72
| | | | | | | | | | | function old new delta packed_usage 28155 28191 +36 static.erase 12 - -12 getty_main 1847 1621 -226 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 36/-238) Total: -202 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-181-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* disable automatic selection of FEATURE_SUID; improve its help textDenys Vlasenko2011-01-181-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix -i (was ignored)Denys Vlasenko2011-01-091-68/+67
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: document -l in --help text. Closes bug 2761Denys Vlasenko2010-12-311-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: apply PAM environmentIan Wienand2010-12-271-0/+11
| | | | | | | | | | | login should apply the PAM environment modified by plugins such as pam_env. Other 'login's do a similar thing. I tested this by setting some env variables with pam_env which were correctly applied. Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: suppress "warning: unused variable 'user_buf'"Denys Vlasenko2010-11-301-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>