summaryrefslogtreecommitdiffstats
path: root/usr.sbin/user/user.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX.millert2019-10-171-5/+5
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-031-2/+2
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-20/+20
* mkstemp() returns -1 on failurederaadt2019-06-281-6/+6
* A bad uid range on the command line should be a fatal error.millert2018-12-311-3/+4
* Use user_from_uid(), uid_from_user(), group_from_gid() andmillert2018-10-151-17/+48
* Fix segfault in usermod -l by swapping one of the getpwnam(3) withmestre2018-09-261-2/+4
* Fix warnings caused by user_from_uid() and group_from_gid() nowmillert2018-09-131-2/+2
* Remove 2 unused parameters from copydotfiles functionmestre2017-05-241-5/+28
* Replace memset(3) with explicit_bzero(3) on user(8) on sensitive datamestre2017-05-121-4/+4
* Since pwp->pw_gid is equal to pwp->pw_uid then use the former instead inmestre2016-11-301-4/+4
* Mitigate some fd leaks on user(8)mestre2016-11-301-1/+6
* According to usermod(8) manpage if -g =uid is used it should create a new groupmestre2016-11-301-4/+12
* remove all the (void) casts which are irrelevant. The remaining onesderaadt2016-11-291-156/+158
* Correct a bit test introduced in user.c rev 1.111 that made it impossiblejsg2016-11-291-2/+3
* Alistair Crooks rescinded the advertising clause of his user(8)jsg2016-11-291-5/+2
* Remove the encrypted password length check. The admin should bemillert2016-08-101-71/+5
* Fix regression on usermod/userdel by calling getpwnam_shadow(3) and savingmestre2016-05-031-7/+17
* When writing master.password entries, use %lld for time_t and castmillert2016-05-021-7/+7
* Add pledge(2) promises independently on each user(8)'s functions as follows:mestre2016-04-261-1/+36
* If program cannot reserve memory then the user doesn't need to know exactly howmestre2016-03-291-3/+2
* -Remove function #defines from defs.h and use the actual code accordingly inmestre2016-03-291-19/+14
* Remove cast from free(3)mestre2016-03-281-2/+2
* Remove handrolled #define FREE and use free(3) directly without wrappingmestre2016-03-281-14/+6
* Really silly to chmod "st_mode & 07777" when making a copy of thederaadt2015-11-151-5/+5
* read_defaults has the thing for strtonum to chew on in cp, notdlg2015-04-241-2/+2
* Replace atoi() usage with strtonum(). OK deraadt@millert2015-04-231-71/+61
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+4
* Add missing capability to handle new $2b version of blowfish passwordsebastia2014-08-271-5/+8
* Make sure the correct errno is reported by warn* or err* and notguenther2014-07-201-39/+63
* unsigned char casts for ctype; ok jcaderaadt2013-11-231-14/+16
* Move the chown and chmod out of copydotfiles() and add an explicitmillert2013-09-101-3/+6
* Write uids/gids as unsigned in the passwd file and error messages.millert2013-08-061-13/+13
* for parsing time values, fall back to atoll() for time_tderaadt2013-04-021-2/+2
* When locking/unlocking an account, never touch passwords that are "*"ajacoutot2013-03-041-4/+9
* Fix unlocking on 32bits arch where it would fuck up the shell...ajacoutot2013-02-161-4/+6
* Be consistent with what the installer and useradd(8) do and put newlyajacoutot2012-09-201-2/+2
* Add 2 new knobs to usermod(8):ajacoutot2012-09-181-4/+93
* fix previous: grp is unused here just check the return valueajacoutot2012-01-291-2/+2
* Make it possible to remove a user from all secondary groups by using:ajacoutot2012-01-281-13/+13
* When setting the groups (`-S'), make sure all provided groups exist inajacoutot2012-01-281-3/+13
* fgets(3) returns a pointer, so compare against NULL, not integer 0.ajacoutot2012-01-121-2/+2
* Remove the EXTENSIONS ifdef danse; it might have made sense in the pastajacoutot2011-12-311-125/+7
* Fix a warning.ajacoutot2011-12-301-2/+2
* Follow adduser(8) behaviour (as well as what the pkg tools and ourajacoutot2011-12-271-2/+17
* -p requires an argument; from Stefan Petterssonjmc2011-12-241-2/+3
* Add a new '-S' option to _set_ the user's secondary group(s) (which alsoajacoutot2011-12-041-6/+30
* remove trailing whitespace, no binary change.sobrado2011-04-161-6/+6
* - avoid nasty line wrap in SYNOPSISjmc2011-04-081-4/+4
* Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'miod2011-04-061-2/+2