summaryrefslogtreecommitdiff
path: root/usr.bin/su/su.c
AgeCommit message (Expand)Author
2023-11-26Remove copyright strings ifdef'd outWarner Losh
2023-11-26usr.bin: Remove ancient SCCS tags.Warner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2017-12-05Use strlcpy().Xin LI
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-10-10Mute gcc warning about p not being possibly initializedEnji Cooper
2017-02-28Renumber copyright clause 4Warner Losh
2013-08-12Make check for unknown login class actually work. Previously, using the "-c"...Edward Tomasz Napierala
2011-03-27getpwnam(3) may return NULL.Hajimu UMEMOTO
2010-12-11Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl
2009-12-13Revert most part of 200420 as requested, as more review and polish isXin LI
2009-12-11Remove unneeded header includes from usr.bin/ except contributed code.Xin LI
2009-04-04Fixup the parameters to audit_submit(3) the order is errno then returnChristian S.J. Peron
2008-06-04Fix a strict aliasing warning - I think it is really telling usDavid Malone
2007-10-18The upper while loop has already recycled child process, so the ifDavid Xu
2007-07-04Significantly reduce the memory leak as noted in BUGS section forSean Farley
2007-05-01Back out all POSIXified *env() changes.Andrey A. Chernov
2007-04-30Prepare for upcoming POSIXed putenv() rewrite:Andrey A. Chernov
2006-10-24Backout previous change (SIGSYS related). The fix has been applied to theMaxim Sobolev
2006-10-24Ignore SIGSYS when BSM is compiled in. Otherwise, attempt to invoke su onMaxim Sobolev
2006-09-29Do not chdir(2) until after setuid(2), otherwise "su - username" would failLuoqi Chen
2006-09-01Integrate audit_submit(3) bits into su. This means that records forChristian S.J. Peron
2006-01-03Fix the other su bug reintroduced two commits ago, namelyBrian Somers
2006-01-02Handle the case (that I just broke) where the following hangs:Brian Somers
2006-01-02Remove broken code that mucks about with tcsetpgrp() -- even ifBrian Somers
2005-01-17If su(1) is run without an effective uid of 0, generate an error toRobert Watson
2004-06-15Oops. My last commit included a bug that would make "su -m" alwaysMark Murray
2004-06-13Paranoia, WARNS fixes and lint.Mark Murray
2004-04-04Add FBSDID. Do not dot terminate errx(3) string.Philippe Charnier
2004-01-06When root tries to su to a non-existent user, pam_authenticate() willDag-Erling Smørgrav
2003-11-04Be sure to restore foreground group to parent su before parent suDavid Xu
2003-11-03It seems when su executes in a shell scripts, there is a timing race,David Xu
2003-10-19Fix broken su -m behaviour :Olivier Houchard
2003-04-08PAM-related improvements:Dag-Erling Smørgrav
2003-03-27Put child process in a different process group, ensure that the broadcastDavid Xu
2003-03-11Fix style bugs in the previous commit (which weren't in bde's patch)Dag-Erling Smørgrav
2003-03-11Reset SIGTSTP handler to default both for parent and child process.David Xu
2003-03-11Fix long standing job control bug. SIGTSTP shouldn't be ignored.David Xu
2003-02-06Pass the correct, verified username to PAM instead of getlogin().Dag-Erling Smørgrav
2002-10-23Add a new '-s' option to su(1): if the flag is present, attempt toRobert Watson
2002-10-18When a user gets refused because the password is wrong, use theMark Murray
2002-10-17Style: use sa_handler instead of __sigaction_u.__sa_handler.Tim J. Robbins
2002-10-14Remove an unused variable.Poul-Henning Kamp
2002-08-12Fix typing error in prev. commitAndrey A. Chernov
2002-08-12Fix style bug in prev. commitAndrey A. Chernov
2002-08-12Fix su job control (recently introduced for PAM cleanup purposes) to notAndrey A. Chernov
2002-08-07Back out workaround of fixing "suspend/fg" by price of breaking "stop $$/fg".Andrey A. Chernov
2002-07-09Remove tcsetpgrp() stuff across suspend/continue because it cause upper levelAndrey A. Chernov
2002-06-26This is Alexander Kabaev's patch to solve the signal problem with suMatthew Dillon
2002-06-26Backout 1.51 on DES's request.Matthew Dillon