summaryrefslogtreecommitdiff
path: root/loginutils/login.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - use ut_user rather than ut_name (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer2008-06-011-2/+2
| | | | | | | | - use ut_tv.tv_sec rather than ut_time (me) - shrink halt a little bit (me): halt_main 464 433 -31 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31) Total: -31 bytes
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-5/+5
|
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-171-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta getopt32 1370 1385 +15 sulogin_main 490 494 +4 realpath_main 84 86 +2 sleep_main 76 77 +1 mt_main 256 257 +1 printenv_main 75 74 -1 fdformat_main 546 545 -1 usleep_main 44 42 -2 setlogcons_main 77 75 -2 ed_main 2654 2649 -5 deallocvt_main 69 64 -5 addgroup_main 373 368 -5 mkfs_minix_main 2989 2982 -7 tail_main 1221 1213 -8 sv_main 1254 1241 -13 du_main 348 328 -20 tftp_main 325 302 -23 split_main 581 558 -23 nc_main 1000 977 -23 diff_main 891 868 -23 arping_main 1797 1770 -27 ls_main 893 847 -46 od_main 2797 2750 -47 readprofile_main 1944 1895 -49 tcpudpsvd_main 1973 1922 -51 udhcpc_main 2590 2513 -77 grep_main 824 722 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/22 up/down: 23/-560) Total: -537 bytes text data bss dec hex filename 796973 658 7428 805059 c48c3 busybox_old 796479 662 7420 804561 c46d1 busybox_unstripped
* *: fix fallout from -Wunused-parameterDenis Vlasenko2008-03-171-3/+1
| | | | | | | | | | | | | | | | | | function old new delta bbunpack 358 366 +8 passwd_main 1070 1072 +2 handle_incoming_and_exit 2651 2653 +2 getpty 88 86 -2 script_main 975 972 -3 inetd_main 2036 2033 -3 dname_enc 377 373 -4 make_new_session 474 462 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes text data bss dec hex filename 797429 658 7428 805515 c4a8b busybox_old 797417 658 7428 805503 c4a7f busybox_unstripped
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* dos2unix: tiny shrinkDenis Vlasenko2008-03-171-9/+11
| | | | | | | | | | | | | | | | | | | | | | login,su: fix setup_environment() so that it works as intended (parameter names were a bit misleading) fdisk: shrink help text: shrink function old new delta login_main 1658 1701 +43 setup_environment 206 203 -3 dos_compatible_flag 4 1 -3 dos2unix_main 383 375 -8 get_boot 1724 1702 -22 fdisk_main 2949 2889 -60 packed_usage 24250 23948 -302 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 43/-398) Total: -355 bytes text data bss dec hex filename 798768 661 7428 806857 c4fc9 busybox_old 798327 658 7428 806413 c4e0d busybox_unstripped
* less,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1)Denis Vlasenko2008-02-241-3/+2
| | | | | *: minor shrink
* mount: recognize "dirsync" (closes bug 835)Denis Vlasenko2008-02-181-6/+3
| | | | | | mount: sanitize environ if called by non-root *: adjust for slightly different sanitize routine
* - fix conflicting decls of syslog related facilitynames and prioritynames tablesBernhard Reutner-Fischer2008-01-271-1/+1
|
* xreadlink: code shrinkDenis Vlasenko2007-11-081-2/+1
| | | | | | | | | | 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
* flush typeahead before promptPaul Fox2007-11-071-0/+4
|
* login: fix PAM login (was unable to complete Kerberos login)Denis Vlasenko2007-11-071-23/+42
|
* login: clear dangerous environment variables if started by non-rootDenis Vlasenko2007-11-061-2/+12
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-1/+1
|
* setup_environment: code shrinkDenis Vlasenko2007-09-101-2/+5
| | | | | | | | | | | | | | | | | | | | 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
* login: do reject wrong passwords with PAM authDenis Vlasenko2007-09-031-12/+21
|
* login: fixes for PAM buildDenis Vlasenko2007-08-221-2/+6
|
* login: optional support for PAMDenis Vlasenko2007-08-211-7/+59
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (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
* init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko2007-06-141-2/+3
| | | | | | init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
* login: make /etc/nologin support configurable. -240 bytes if not selected.Denis Vlasenko2007-06-121-10/+14
|
* login: ask passwords even for wrong usernames.Denis Vlasenko2007-06-081-4/+3
| | | | | | | | # 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
* use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko2007-05-311-1/+0
| | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* login: fixing my brainfart: xspawn(t_argv) <- was using argv!Denis Vlasenko2007-04-121-1/+1
|
* login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko2007-04-121-20/+25
| | | | | login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
* Attempt to get more applets compile for NOMMU.Denis Vlasenko2007-03-261-18/+17
| | | | | | | 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).
* add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copyDenis Vlasenko2007-03-251-1/+1
|
* login: nuke nonblock() - we have it in libbb; -400 bytes bss.Denis Vlasenko2007-03-241-34/+28
|
* EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>Denis Vlasenko2007-02-061-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* style fixesDenis Vlasenko2006-12-261-1/+1
| | | | last xcalloc replaced by xzalloc
* login: use %s - we know that string is not too long thereDenis Vlasenko2006-11-201-3/+3
| | | | | ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly (was requiring '-c 6' with mandatory space)
* rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko2006-11-181-5/+5
|
* login: add big fat comment about SIGINT - preventDenis Vlasenko2006-10-311-1/+8
| | | | adding/deleting that code again and again
* login: re-enable Ctrl-^C before execing shell.Denis Vlasenko2006-10-311-2/+12
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-1/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | 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.
* login: fix getopt_ulflags fallout (wasn't taking username supplied by getty)Denis Vlasenko2006-09-261-3/+3
|
* login: apply fixes + getopt_ulflag'ification by BernhardDenis Vlasenko2006-09-171-44/+29
|
* login: eliminate forward decls and #ifdefsDenis Vlasenko2006-09-141-191/+166
|
* - r16075 broke for de-selected FEATURE_UTMP; Partial fix that wants some ↵Bernhard Reutner-Fischer2006-09-131-28/+11
| | | | more cleanup (see FIXME in the patch).
* login: use some ideas from util-linux's login.Denis Vlasenko2006-09-081-25/+15
| | | | | | | | 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...).
* login: make it saner and smaller by ~0.5k.Denis Vlasenko2006-09-081-185/+131
|
* login: small fixes like \n removal, bb_error_msg'ification, etc.Denis Vlasenko2006-09-081-19/+17
|
* login: previous commit comment was wrong :)Denis Vlasenko2006-09-081-131/+133
| | | | | | That commit added login script support. Now _this commit_ is a style fix. Sorry....
* login: style fixesDenis Vlasenko2006-09-081-0/+22
|
* getty, sulogin: convert to using bb_msg for syslog outputDenis Vlasenko2006-09-071-1/+1
|
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-0/+4
|