aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
Commit message (Expand)AuthorAgeFilesLines
* Use strlcpy().Xin LI2017-12-051-2/+2
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
* Mute gcc warning about p not being possibly initializedEnji Cooper2017-10-101-1/+1
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
* Make check for unknown login class actually work. Previously, using the "-c"...Edward Tomasz Napierala2013-08-121-0/+2
* getpwnam(3) may return NULL.Hajimu UMEMOTO2011-03-271-3/+4
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
* Fixup the parameters to audit_submit(3) the order is errno then returnChristian S.J. Peron2009-04-041-7/+7
* Fix a strict aliasing warning - I think it is really telling usDavid Malone2008-06-041-2/+3
* The upper while loop has already recycled child process, so the ifDavid Xu2007-10-181-3/+1
* Significantly reduce the memory leak as noted in BUGS section forSean Farley2007-07-041-2/+6
* Back out all POSIXified *env() changes.Andrey A. Chernov2007-05-011-3/+2
* Prepare for upcoming POSIXed putenv() rewrite:Andrey A. Chernov2007-04-301-2/+3
* Backout previous change (SIGSYS related). The fix has been applied to theMaxim Sobolev2006-10-241-2/+0
* Ignore SIGSYS when BSM is compiled in. Otherwise, attempt to invoke su onMaxim Sobolev2006-10-241-0/+2
* Do not chdir(2) until after setuid(2), otherwise "su - username" would failLuoqi Chen2006-09-291-6/+4
* Integrate audit_submit(3) bits into su. This means that records forChristian S.J. Peron2006-09-011-6/+68
* Fix the other su bug reintroduced two commits ago, namelyBrian Somers2006-01-031-1/+14
* Handle the case (that I just broke) where the following hangs:Brian Somers2006-01-021-1/+3
* Remove broken code that mucks about with tcsetpgrp() -- even ifBrian Somers2006-01-021-7/+0
* If su(1) is run without an effective uid of 0, generate an error toRobert Watson2005-01-171-3/+33
* Oops. My last commit included a bug that would make "su -m" alwaysMark Murray2004-06-151-2/+0
* Paranoia, WARNS fixes and lint.Mark Murray2004-06-131-19/+19
* Add FBSDID. Do not dot terminate errx(3) string.Philippe Charnier2004-04-041-5/+6
* When root tries to su to a non-existent user, pam_authenticate() willDag-Erling Smørgrav2004-01-061-4/+4
* Be sure to restore foreground group to parent su before parent suDavid Xu2003-11-041-1/+2
* It seems when su executes in a shell scripts, there is a timing race,David Xu2003-11-031-0/+2
* Fix broken su -m behaviour :Olivier Houchard2003-10-191-4/+2
* PAM-related improvements:Dag-Erling Smørgrav2003-04-081-37/+59
* Put child process in a different process group, ensure that the broadcastDavid Xu2003-03-271-6/+22
* Fix style bugs in the previous commit (which weren't in bde's patch)Dag-Erling Smørgrav2003-03-111-2/+0
* Reset SIGTSTP handler to default both for parent and child process.David Xu2003-03-111-3/+4
* Fix long standing job control bug. SIGTSTP shouldn't be ignored.David Xu2003-03-111-1/+0
* Pass the correct, verified username to PAM instead of getlogin().Dag-Erling Smørgrav2003-02-061-1/+1
* Add a new '-s' option to su(1): if the flag is present, attempt toRobert Watson2002-10-231-4/+14
* When a user gets refused because the password is wrong, use theMark Murray2002-10-181-0/+4
* Style: use sa_handler instead of __sigaction_u.__sa_handler.Tim J. Robbins2002-10-171-1/+1
* Remove an unused variable.Poul-Henning Kamp2002-10-141-2/+0
* Fix typing error in prev. commitAndrey A. Chernov2002-08-121-1/+1
* Fix style bug in prev. commitAndrey A. Chernov2002-08-121-2/+1
* Fix su job control (recently introduced for PAM cleanup purposes) to notAndrey A. Chernov2002-08-121-3/+6
* Back out workaround of fixing "suspend/fg" by price of breaking "stop $$/fg".Andrey A. Chernov2002-08-071-1/+3
* Remove tcsetpgrp() stuff across suspend/continue because it cause upper levelAndrey A. Chernov2002-07-091-3/+1
* This is Alexander Kabaev's patch to solve the signal problem with suMatthew Dillon2002-06-261-0/+11
* Backout 1.51 on DES's request.Matthew Dillon2002-06-261-2/+0
* Make our child the leader of its own process group to avoid receivingDag-Erling Smørgrav2002-05-291-0/+2
* Drive-by whitespace cleanup & add NAI copyrightDag-Erling Smørgrav2002-05-281-2/+9
* Belatedly OpenPAMify. I forgot this patch in last night's megacommit.Dag-Erling Smørgrav2002-03-061-2/+2