summaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
AgeCommit message (Expand)Author
2023-03-24After a ':' (as in login:group or just :group) insist that therekre
2021-10-30su(1): use reallocarr instead of malloc(x * y)nia
2021-10-17su: Use consttime_memequal instead of strcmp.nia
2015-06-16fix some error handling.christos
2014-03-16Fix gcc48 build. No obvious reason why nobody else has hit this...dholland
2012-04-12make this compile again.christos
2011-08-31NULL does not need a castplunky
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-04-05call setprogname(), from Anon Ymouschristos
2007-10-17From Anon Ymous:christos
2005-07-05Set LOGNAME in the new environment (in addition to USER);kleink
2005-01-10Restore su.c to version 1.58, plus minor prototyping. Split pamchristos
2005-01-09Rewrite PAMification of su.manu
2005-01-08Don't fallback to plain old authentication on "normal" errors such asmanu
2005-01-08if we are using pam and it succeeded, don't re-initialize kerberos needlessly.christos
2005-01-08- avoid calling pam_end twice if pam failed in fatalchristos
2005-01-07Add PAM support to sumanu
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
2003-08-20Normalize the program's compilation options so they are all of the form SU_christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-06-18This addresses PR21693. Under certain conditions, su -m will fail becausejrf
2003-04-27Implement the `-d' option, which behaves as `-l' but does not change thejmmv
2003-04-25Only unset ENV if -f was used, AS THE CHANGE WAS DOCUMENTED.mycroft
2003-04-20PR/5803: Gregg A. Woods: su doesn't support it's "-f" option for sh and/or kshchristos
2002-11-16error handling on strdup failureitojun
2002-11-16use strlcpyitojun
2002-06-11err/errx/warn/warnx do not need \n at the enditojun
2001-04-23Revert to previous, less offensive, error message when a malloc fails.simonb
2001-02-19convert to use getprogname()cgd
2001-01-10If SU_INDIRECT_GROUP is defined (it is by default), then su willsjg
2001-01-10- don't use LOG_CONSlukem
2000-09-09Switch to the user we're su-ing to sooner. This allows su to actually access...erh
2000-08-09set the correct owner on the krb5 ccacheassar
2000-07-13fix the krb5 su to ordinary user case, from Mark Daviesassar
2000-07-10add Kerberos5 supportassar
2000-07-10repair, simplify, and improve the Kerberos partassar
2000-02-11Set SU_FROM environment variable. This can be used to determine a 'su -'abs
2000-01-25Removed code that would squash root's path when suing to root,mjl
2000-01-14Implement login_cap capability lookup.mjl
1999-11-09Since our gcc doesn't warn about NULL format strings anymore, we candrochner
1999-08-29Amazing how this worked for so long. setenv(3) expects environ(7) to bechristos
1999-07-11Allow people in group wheel to use the ROOTAUTH group.kim
1999-03-22Looks like some recent changes broke the 'anyone can su if wheel is not presentabs
1999-03-15Revert - handling; it is done as part of getopt.christos
1999-03-15Remove Solaris shadow password support... Better to do this in thechristos
1999-03-15- Add support for Solaris style shadow password fileschristos
1999-02-20Don't warn about being in a user's ACL if Kerberos appears to bescottr
1998-12-19ifdef the pw_change and pw_expire stuff with BSD4_4christos
1998-10-14Add #ifdef SKEY around SKEY-specific code.wsanchez
1998-08-25Add { and } to shut up egcs. Reformat the more questionable code.ross