summaryrefslogtreecommitdiff
path: root/usr.sbin/user/user.c
AgeCommit message (Expand)Author
2023-05-18user: handle paths with whitespace / metacharactersTodd C. Miller
2023-05-16useradd: use "cp" instead of "pax" to copy dot filesTodd C. Miller
2023-05-15user: simplify memsave() to strsave()Todd C. Miller
2019-10-17Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX.Todd C. Miller
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-28mkstemp() returns -1 on failureTheo de Raadt
2018-12-31A bad uid range on the command line should be a fatal error.Todd C. Miller
2018-10-15Use user_from_uid(), uid_from_user(), group_from_gid() andTodd C. Miller
2018-09-26Fix segfault in usermod -l by swapping one of the getpwnam(3) withRicardo Mestre
2018-09-13Fix warnings caused by user_from_uid() and group_from_gid() nowTodd C. Miller
2017-05-24Remove 2 unused parameters from copydotfiles functionRicardo Mestre
2017-05-12Replace memset(3) with explicit_bzero(3) on user(8) on sensitive dataRicardo Mestre
2016-11-30Since pwp->pw_gid is equal to pwp->pw_uid then use the former instead inRicardo Mestre
2016-11-30Mitigate some fd leaks on user(8)Ricardo Mestre
2016-11-30According to usermod(8) manpage if -g =uid is used it should create a new groupRicardo Mestre
2016-11-29remove all the (void) casts which are irrelevant. The remaining onesTheo de Raadt
2016-11-29Correct a bit test introduced in user.c rev 1.111 that made it impossibleJonathan Gray
2016-11-29Alistair Crooks rescinded the advertising clause of his user(8)Jonathan Gray
2016-08-10Remove the encrypted password length check. The admin should beTodd C. Miller
2016-05-03Fix regression on usermod/userdel by calling getpwnam_shadow(3) and savingRicardo Mestre
2016-05-02When writing master.password entries, use %lld for time_t and castTodd C. Miller
2016-04-26Add pledge(2) promises independently on each user(8)'s functions as follows:Ricardo Mestre
2016-03-29If program cannot reserve memory then the user doesn't need to know exactly howRicardo Mestre
2016-03-29-Remove function #defines from defs.h and use the actual code accordingly inRicardo Mestre
2016-03-28Remove cast from free(3)Ricardo Mestre
2016-03-28Remove handrolled #define FREE and use free(3) directly without wrappingRicardo Mestre
2015-11-15Really silly to chmod "st_mode & 07777" when making a copy of theTheo de Raadt
2015-04-24read_defaults has the thing for strtonum to chew on in cp, notDavid Gwynne
2015-04-23Replace atoi() usage with strtonum(). OK deraadt@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-08-27Add missing capability to handle new $2b version of blowfish passwordSebastian Reitenbach
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
2013-11-23unsigned char casts for ctype; ok jcaTheo de Raadt
2013-09-10Move the chown and chmod out of copydotfiles() and add an explicitTodd C. Miller
2013-08-06Write uids/gids as unsigned in the passwd file and error messages.Todd C. Miller
2013-04-02for parsing time values, fall back to atoll() for time_tTheo de Raadt
2013-03-04When locking/unlocking an account, never touch passwords that are "*"Antoine Jacoutot
2013-02-16Fix unlocking on 32bits arch where it would fuck up the shell...Antoine Jacoutot
2012-09-20Be consistent with what the installer and useradd(8) do and put newlyAntoine Jacoutot
2012-09-18Add 2 new knobs to usermod(8):Antoine Jacoutot
2012-01-29fix previous: grp is unused here just check the return valueAntoine Jacoutot
2012-01-28Make it possible to remove a user from all secondary groups by using:Antoine Jacoutot
2012-01-28When setting the groups (`-S'), make sure all provided groups exist inAntoine Jacoutot
2012-01-12fgets(3) returns a pointer, so compare against NULL, not integer 0.Antoine Jacoutot
2011-12-31Remove the EXTENSIONS ifdef danse; it might have made sense in the pastAntoine Jacoutot
2011-12-30Fix a warning.Antoine Jacoutot
2011-12-27Follow adduser(8) behaviour (as well as what the pkg tools and ourAntoine Jacoutot
2011-12-24-p requires an argument; from Stefan PetterssonJason McIntyre
2011-12-04Add a new '-S' option to _set_ the user's secondary group(s) (which alsoAntoine Jacoutot