aboutsummaryrefslogtreecommitdiff
path: root/loginutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* getty: fix a minor problem of Ctrl-D not printing '\n'Denys Vlasenko2011-10-233-36/+94
| | | | | | | Also removed defines for control chars which are never changed, and added login/getty README. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: reset tty attrs on Ctrl-C and Ctrl-D tooDenys Vlasenko2011-10-231-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add O_NONBLOCK to open which is used to drop cttyDenys Vlasenko2011-10-221-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: remove now not needed resetting of ALRM to to SIG_DFLDenys Vlasenko2011-10-221-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty,login: tighten up handling of ctty, pgrp, and tty attr restoring on ↵Denys Vlasenko2011-10-222-97/+156
| | | | | | timeout Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: shrink help textDenys Vlasenko2011-10-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: new option LOGIN_SESSION_AS_CHILDIan Wienand2011-09-142-6/+58
| | | | | Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chpasswd: fix possible free() or non-allocated string. +8 bytesDenys Vlasenko2011-09-111-6/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-0510-11/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: better logic for choosing addgroup -g/--gidDenys Vlasenko2011-05-211-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: prefer to call addgroup --gid, not non-std addgroup -gDenys Vlasenko2011-05-211-4/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd: shorter help textDenys Vlasenko2011-05-131-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: safe username passing to passwd/addgroupDenys Vlasenko2011-05-134-72/+57
| | | | | | | | | | | | | | | | | | | passwd: support creating SHA passwords random code shrink function old new delta crypt_make_pw_salt - 87 +87 adduser_main 883 904 +21 ... crypt_make_salt 99 89 -10 chpasswd_main 329 312 -17 packed_usage 28731 28691 -40 passwd_main 1070 1000 -70 cryptpw_main 310 224 -86 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim help textDenys Vlasenko2011-05-121-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd,chpasswd: reset password in /etc/passwd to "x" if /etc/shadow was updatedTito Ragusa2011-04-052-4/+10
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c ↵Pere Orga2011-04-039-0/+125
| | | | | | | editors/*.c loginutils/*.c mailutils/*.c Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: set PAM RHOSTRyan Phillips2011-03-221-0/+8
| | | | | Signed-off-by: Ryan Phillips <ryan@trolocsis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* s/FAIL_DELAY/LOGIN_FAIL_DELAY/Denys Vlasenko2011-03-084-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use user's shell instead of hardwired "/bin/sh" (android needs this)Denys Vlasenko2011-03-081-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMADenys Vlasenko2011-03-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/login/su: do not sanitize shell name twiceDenys Vlasenko2011-03-062-14/+4
| | | | | | | | | | | function old new delta setup_environment 191 205 +14 login_main 1002 987 -15 su_main 474 458 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 14/-31) Total: -17 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>