aboutsummaryrefslogtreecommitdiff
path: root/loginutils/su.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libbb: introduce and use xmalloc_ttyname (-32 in bss).Denis Vlasenko2008-12-231-1/+1
| | | | | | | | | ash: small code shrink text data bss dec hex filename 793669 504 7524 801697 c3ba1 busybox_old 793659 504 7492 801655 c3b77 busybox_unstripped
* libbb: introduce and use xgetpwnam. ~ -150 bytes.Denis Vlasenko2008-12-031-3/+1
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* *: shrink by using [f]open_or_warn_stdin where appropriateDenis Vlasenko2008-03-171-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta lsattr_main 62 143 +81 open_or_warn_stdin - 36 +36 fclose_if_not_stdin 20 47 +27 xfopen_stdin - 20 +20 tac_main 336 356 +20 cksum_main 249 259 +10 bb_argv_dash - 8 +8 su_main 448 455 +7 cmp_main 630 633 +3 passwd_main 1072 1074 +2 uudecode_main 317 315 -2 text_yank 110 108 -2 handle_incoming_and_exit 2653 2651 -2 flags 5 1 -4 write_leases 235 230 -5 fopen_or_warn_stdin 48 42 -6 fold_main 648 642 -6 static.argv_dash 8 - -8 sum_main 142 128 -14 tail_main 1237 1221 -16 sed_main 711 695 -16 cmp_xfopen_input 17 - -17 bb_cat 113 96 -17 catv_main 328 306 -22 strings_main 457 434 -23 hash_file 298 274 -24 sum_file 353 325 -28 sort_main 904 859 -45 expand_main 736 686 -50 cut_main 1116 1065 -51 md5_sha1_sum_main 549 493 -56 lsattr_args 90 - -90 read_stduu 408 255 -153 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 7/20 up/down: 214/-657) Total: -443 bytes text data bss dec hex filename 797417 658 7428 805503 c4a7f busybox_old 796973 658 7428 805059 c48c3 busybox_unstripped
* dos2unix: tiny shrinkDenis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* setup_environment: code shrinkDenis Vlasenko2007-09-101-3/+4
| | | | | | | | | | | | | | | | | | | | 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
* 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
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #3Denis Vlasenko2007-01-291-3/+3
|
* su: fix typo: "argv -= optind" should be +=Denis Vlasenko2006-12-231-1/+1
|
* - rename SU_SYSLOG to FEATURE_SU_SYSLOGBernhard Reutner-Fischer2006-12-191-7/+8
|
* su: make /etc/shells check configurableDenis Vlasenko2006-12-191-8/+15
| | | | ash: missing ';'
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-7/+11
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-1/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | 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.
* correct_password: undo whitespace damage.Denis Vlasenko2006-09-231-1/+1
| | | | vlock + correct_password: fix incorrect line breaks in messages.
* - fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer2006-09-131-1/+1
| | | | | | boilerplate. No object code changes.
* getty, sulogin: convert to using bb_msg for syslog outputDenis Vlasenko2006-09-071-3/+3
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-5/+1
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Comment tweak from tito.Rob Landley2006-07-151-1/+1
|
* Patch from Tito to make syslog configurable and remove #ifdefs. FurtherRob Landley2006-07-101-111/+43
| | | | cleanups by me.
* - minor size tweakBernhard Reutner-Fischer2006-06-141-8/+7
| | | | | | text data bss dec hex filename 613 0 0 613 265 loginutils/su.o.orig 605 0 0 605 25d loginutils/su.o
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* - Document -m, -c, -s and provide a default shell for standalone build.Bernhard Reutner-Fischer2006-01-191-9/+17
| | | | | - Wrap overlong lines plus a few whitespace fixes. - add GPL header.
* Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and ↵Mike Frysinger2005-07-011-1/+1
| | | | WTMP options
* A patch from Takeharu KATO to update/fix SE-Linux support.Rob Landley2005-05-031-3/+2
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-6/+6
|
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as oneGlenn L McGrath2003-09-021-1/+0
| | | | | constant. Vodz last_patch_107
* Vodz, last patch 105Glenn L McGrath2003-08-291-74/+66
| | | | | | Busybox "mount" applet unsupport "user" option and result: must have _BB_SUID_NEVER applet option (my bug). Last patch have reducing 216 bytes for "su" applet also.
* Patch from Russell Coker:Eric Andersen2003-07-031-1/+5
| | | | | I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox.
* Major coreutils update.Manuel Novoa III2003-03-191-7/+7
|
* Port over the last of the tinylogin appletsEric Andersen2002-06-231-7/+2
| | | | -Erik
* Bigger patch for (partial) tinylogin integrationRobert Griebl2002-06-041-0/+167
- Made a new dir loginutils - Moved all applets from pwd_grp to loginutils - Added new applets su.c login.c to loginutils - Made a new dir libpwdgrp - Moved everything from pwd_grp/libpwd_grp there - Added shadow.c to libpwdgrp - Removed dir pwd_grp - Added usage strings for login and su to usage.h - Changed main Makefile to reflect the dir rearrangements [Parts of this patch may overlap with my other two patches]