summaryrefslogtreecommitdiff
path: root/loginutils/su.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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]