summaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
AgeCommit message (Expand)Author
2015-10-30Redo 1.69, but correctly, so that this really works for yp setups.Miod Vallat
2015-10-24Move removal of "getpw" pledge after all setusercontext() calls, for yp sake.Miod Vallat
2015-10-23pledge "stdio rpath getpw proc exec id" at start, much like doas.Theo de Raadt
2015-04-15remove historical (void)foo (which were only here to hide lint'sTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2011-01-11Allow su -l to login to a user that has a non-existent home directory,Robert Nagy
2010-12-13Call setusercontext() with the LOGIN_SETENV flag for "su -l" to pick upTodd C. Miller
2010-12-10- don't use memory from the session we've already cleaned in theMartynas Venckus
2010-12-09spacing, no functional change.Igor Sobrado
2010-12-09usage should fit on a 80-column displayIgor Sobrado
2010-12-09add -s to usageIgor Sobrado
2010-12-09Add support for "-s shell" to su(1). This can be used by the superuserTodd C. Miller
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-10-19do setegid() before seteuid(); see pr 5605 for more info; ok millertTheo de Raadt
2003-11-09Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>Otto Moerbeek
2003-09-26Typos: defintion -> definition, proccess -> processMiod Vallat
2003-06-21correct sign of flags; millert okTheo de Raadt
2003-06-20Call setusershell() before using getusershell() to guarantee weTodd C. Miller
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2002-12-17Only call setlogin() if this proccess is a session leader.Todd C. Miller
2002-12-08GNU semantics say that if optstring begins with '-' thenTodd C. Miller
2002-12-07Repair -a flag parsing which I broke in revision 1.47.Todd C. Miller
2002-11-08In login emulation mode use the same setusercontext() flags asTodd C. Miller
2002-10-16Add a new flag, -L, to cause su(1) to loop asking for a login/passwordTodd C. Miller
2002-07-22auth_close() was not actually getting called in auth_errx?() (notTodd C. Miller
2002-05-29KNFTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-09-18check strdup() rvalTodd C. Miller
2001-09-18Make a private copy of pwd via pw_dup() since its contents can getTodd C. Miller
2001-06-25Instead of trying to do clever and figure out a root instance for Kerberos,Hans Insulander
2001-06-25Add a "login" option to allow differentiation between authenticationTodd C. Miller
2001-05-31nuke errant ARGSTR that I osmehow missed in the last commitTodd C. Miller
2001-05-31no longer need ARGSTR macro; sync usage() with man pageTodd C. Miller
2001-05-29add support for BSD authenticationTodd C. Miller
2000-12-02Check for symlinks before overwriting kerberos ticket files.Hans Insulander
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-08-20Add calls to setusercontext() and login_get*(). We basically callTodd C. Miller
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
1998-03-25explicit braces to avoid ambigious `else', some small -Wall fixesArtur Grabowski
1997-09-11cleanup -WallTheo de Raadt
1997-06-29new location of des.hNiels Provos
1997-06-27fix up KRBTKFILE confusion; dm@ and traister@gate.netTheo de Raadt
1997-06-23long != intTheo de Raadt
1997-06-22%u for uidTheo de Raadt
1997-06-21push KRBTKFILE only if new ticket; dm@openbsd.org and traister@gate.netTheo de Raadt
1997-06-20worry about #ifdef KERBEROSTheo de Raadt
1997-06-20when building new environment, do not destroy KRBTKFILE; traister@gate.netTheo de Raadt
1997-06-20do not conflict with realloc() in setenv(); traister@gate.netTheo de Raadt
1997-02-18Undo last changes; it makes it impossible to suspect su in Kerberos mode,Thorsten Lockert