summaryrefslogtreecommitdiff
path: root/loginutils/login.c
AgeCommit message (Collapse)Author
2008-01-27- fix conflicting decls of syslog related facilitynames and prioritynames tablesBernhard Reutner-Fischer
2007-11-08xreadlink: code shrinkDenis Vlasenko
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
2007-11-07flush typeahead before promptPaul Fox
2007-11-07login: fix PAM login (was unable to complete Kerberos login)Denis Vlasenko
2007-11-06login: clear dangerous environment variables if started by non-rootDenis Vlasenko
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-09-27introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko
2007-09-10setup_environment: code shrinkDenis Vlasenko
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
2007-09-03login: do reject wrong passwords with PAM authDenis Vlasenko
2007-08-22login: fixes for PAM buildDenis Vlasenko
2007-08-21login: optional support for PAMDenis Vlasenko
2007-08-18don't pass argc in getopt32, it's superfluousDenis Vlasenko
(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
2007-06-14init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko
init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
2007-06-12login: make /etc/nologin support configurable. -240 bytes if not selected.Denis Vlasenko
2007-06-08login: ask passwords even for wrong usernames.Denis Vlasenko
# 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
2007-05-31use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko
(add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-12login: fixing my brainfart: xspawn(t_argv) <- was using argv!Denis Vlasenko
2007-04-12login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko
login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
2007-03-26Attempt to get more applets compile for NOMMU.Denis Vlasenko
TODO_config_nommu documents what I managed to compile so far (yay! msh works! cool). inetd, telnetd, httpd still do not compile. TODO Also make fork(), daemon() produce warnings on compile stage (in addition to erros on link stage).
2007-03-25add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copyDenis Vlasenko
2007-03-24login: nuke nonblock() - we have it in libbb; -400 bytes bss.Denis Vlasenko
2007-02-06EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>Denis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2006-12-26style fixesDenis Vlasenko
last xcalloc replaced by xzalloc
2006-11-20login: use %s - we know that string is not too long thereDenis Vlasenko
ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly (was requiring '-c 6' with mandatory space)
2006-11-18rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko
2006-10-31login: add big fat comment about SIGINT - preventDenis Vlasenko
adding/deleting that code again and again
2006-10-31login: re-enable Ctrl-^C before execing shell.Denis Vlasenko
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-09-26login: fix getopt_ulflags fallout (wasn't taking username supplied by getty)Denis Vlasenko
2006-09-17login: apply fixes + getopt_ulflag'ification by BernhardDenis Vlasenko
2006-09-14login: eliminate forward decls and #ifdefsDenis Vlasenko
2006-09-13- r16075 broke for de-selected FEATURE_UTMP; Partial fix that wants some ↵Bernhard Reutner-Fischer
more cleanup (see FIXME in the patch).
2006-09-08login: use some ideas from util-linux's login.Denis Vlasenko
O_NONBLOCKing output on login timeout. fchmod instead of chmod (latter is racy). is_my_tty() is not needed anymore after race is fixed (is_my_tty() was racy too anyway...).
2006-09-08login: make it saner and smaller by ~0.5k.Denis Vlasenko
2006-09-08login: small fixes like \n removal, bb_error_msg'ification, etc.Denis Vlasenko
2006-09-08login: previous commit comment was wrong :)Denis Vlasenko
That commit added login script support. Now _this commit_ is a style fix. Sorry....
2006-09-08login: style fixesDenis Vlasenko
2006-09-07getty, sulogin: convert to using bb_msg for syslog outputDenis Vlasenko
2006-07-12Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"
2006-07-01Remove all usage of the "register" storage class specifier."Robert P. J. Day"
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-05-26- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).Bernhard Reutner-Fischer
- fix last.c to also look at the double-underscore UT_ defines.
2006-05-26- use portability wrapper define bb_setpgrp.Bernhard Reutner-Fischer
2006-05-07Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley
as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
2006-03-27From Jan Kiszka: This patch fixes the security labelling of the login terminalRob Landley
and process... There still remains some stuff to clean up (the whole set_current_security_context() appears unnecessary complex to me), but this is now at least working.
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-01-31more destroy potential overflow for x86_64."Vladimir N. Oleynik"