summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* There is no reason to disallow setting the password or account expiryDag-Erling Smørgrav2013-07-031-4/+0
| | | | | | date to the current date. MFC after: 3 days
* Fix -Wunsequenced warningTim Kientzle2013-06-291-1/+1
| | | | Submitted by: dt71@gmx.com
* mdoc sweepJoel Dahl2013-05-131-1/+1
|
* Prevent a null pointer dereference in pw userdel when deletingDaniel Eischen2013-02-011-1/+1
| | | | a user whose group != username.
* Merge projects/bhyve to head.Neel Natu2013-01-190-0/+0
|\ | | | | | | | | | | | | | | | | 'bhyve' was developed by grehan@ and myself at NetApp (thanks!). Special thanks to Peter Snyder, Joe Caradonna and Michael Dexter for their support and encouragement. Obtained from: NetApp
| * IFC @ r245509Neel Natu2013-01-171-2/+0
| |\ | |/ |/|
* | Remove unused variablesEitan Adler2013-01-161-2/+0
| | | | | | | | | | Approved by: cperciva MFC After: 3 days
| * IFC @ r245178Neel Natu2013-01-091-0/+1
| |\ | |/ |/|
* | pw: free group returned by gr_addMateusz Guzik2013-01-061-0/+1
| |
| * IFC @ r244983.Neel Natu2013-01-047-204/+95
| |\ | |/ |/|
* | Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.Baptiste Daroussin2012-12-271-169/+67
| |
* | Fix a regression in "pw group show" introduced r242349:Baptiste Daroussin2012-12-271-1/+1
| | | | | | | | | | | | | | print a newline after printing each group line. PR: bin/174731 Submitted by: Jan Beich <jbeich@tormail.org>
* | Simplify the code by using the new gr_add functionBaptiste Daroussin2012-12-271-15/+9
| |
* | Simplify copying of group members by using memcpyBaptiste Daroussin2012-12-261-2/+1
| | | | | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* | Fix off-by-one error in memory allocation: j entries, one new and a nullBaptiste Daroussin2012-12-261-1/+1
| | | | | | | | | | | | terminator is j + 2. Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* | In case of the deletion of a user those whole database has to be regenerated,Baptiste Daroussin2012-12-261-1/+5
| | | | | | | | | | otherwise the user planned to be deleted remain in the pwd.db while removed from the plain text password file.
* | Fix creating a user and adding it to a groupBaptiste Daroussin2012-12-261-7/+8
| | | | | | | | Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim
* | Simplify string duplication: use strdup instead of malloc + strcpyEitan Adler2012-12-051-6/+5
| | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* | Avoid overflowing the file bufferEitan Adler2012-12-051-1/+1
| | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* | Use strdup instead of malloc + strcpyEitan Adler2012-12-051-6/+4
| | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* | Avoid overflow of file bufferEitan Adler2012-12-051-1/+1
| | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks
* | Remove useless check for NULL prior to free.Eitan Adler2012-12-052-4/+2
| | | | | | | | | | Approved by: cperciva MFC after: 2 weeks
| * IFC @r243836Neel Natu2012-12-041-0/+2
| |\ | |/ |/|
* | In NIS mode first chmod(2) the temporary file and is succeed then rename(2)Baptiste Daroussin2012-11-201-2/+2
| |
* | Correctly set the password file mode after renaming in NIS modeBaptiste Daroussin2012-11-201-0/+2
| |
| * IFC @ r242940Neel Natu2012-11-130-0/+0
| |\ | |/ |/|
| * IFC @ r242684Neel Natu2012-11-1115-625/+180
| |\ | |/ |/|
* | Teach pw(8) about how to use pw/gr API to reduce code duplicationBaptiste Daroussin2012-10-3014-620/+175
| | | | | | | | MFC after: 2 months
* | Do not treat empty name as an uid 0Baptiste Daroussin2012-10-011-1/+2
| | | | | | | | Reported by: Robert Bonomi <bonomi@mail.r-bonomi.com>
* | Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is aBaptiste Daroussin2012-10-011-2/+1
| | | | | | | | | | | | | | | | | | number. This also allow pw user show to work as expected. PR: bin/172112 Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru> MFC after: 1 month
* | Make sure that each va_start has one and only one matching va_end,Kevin Lo2012-09-281-0/+1
| | | | | | | | especially in error cases.
* | Remove a reference to CVS and to freefall from a user-facing man page.Isabell Long2012-09-151-4/+3
| | | | | | | | | | | | | | PR: docs/171658 Reported by: Chris Petrik (c dot petrik dot sosa at gmail dot com) Approved by: gabor (mentor) MFC after: 5 days
| * IFC @ r238370Peter Grehan2012-07-111-1/+1
| |\ | |/ |/|
* | mdoc: add missing width argument to Bl -tag.Joel Dahl2012-06-031-1/+1
| |
* | A new jail(8) with a configuration file, ultimately to replace the workJamie Gritton2012-04-260-0/+0
|\ \ | | | | | | | | | | | | | | | currently done by /etc/rc.d/jail. MFC after: 3 months
| * | A new jail(8) with a configuration file, to replace the work currently doneJamie Gritton2010-10-1929-8634/+0
| | | | | | | | | | | | by /etc/rc.d/jail.
| | * IFC @ r234692Peter Grehan2012-04-264-3/+8
| | |\ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | sys/amd64/include/cpufunc.h sys/amd64/include/fpu.h sys/amd64/amd64/fpu.c sys/amd64/vmm/vmm.c - Add API to allow vmm FPU state init/save/restore. FP stuff discussed with: kib
* | | MFhead_mfi r233621Doug Ambrisko2012-03-300-0/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the magic mfi_array is 288 bytes and just use the sizeof the array since it is not 288 bytes. Change reporting of a "SYSTEM" disk to "JBOD" to match LSI MegaCli and firmware reporting. This means that fiutil command to "create jbod" is now a little confusing since a RAID per drive is not really what LSI defines JBOD to be. This should be fixed in the future and support added to really create LSI JBOD and enable that feature on cards that support it.
* | | | Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* | | | When using uidstart in /etc/adduser.conf, get the nextDaniel Eischen2012-02-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | available user id and show it in the "Uid [xxx]" prompt. PR: 163863 Submitted by: Moritz Wilhelmy (mw at wzff dot de) MFC after: 2 weeks
* | | | Handle NULL return from crypt(3). Mostly from DragonFlyKevin Lo2012-02-221-1/+5
| | | |
* | | | readlink len-1Kevin Lo2012-02-141-1/+1
| | | |
| | | * IFC to head to catch up the bhyve branchSean Bruno2012-01-044-8/+19
| | | |\ | |_|_|/ |/| | | | | | | Approved by: grehan@
* | | | Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-302-6/+6
| | | |
* | | | - document the -l option to usermodEitan Adler2011-12-221-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: docs/161588 Submitted by: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com> Approved by: gjb MFC after: 1 week
* | | | In usr.sbin/pw/pw_user.c, use the correct printf length modifier for aDimitry Andric2011-12-171-1/+1
|/ / / | | | | | | | | | | | | | | | ptrdiff_t. MFC after: 1 week
| | * IFC @ r225592Peter Grehan2011-09-151-1/+1
| | |\ | |_|/ |/| | | | | sys/dev/bvm/bvm_console.c - move up to the new alt-break order.
* | | Backout r223115 which potentially caused a POLA violation, by restoringXin LI2011-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn Approved by: re (kib)
| | * IFC @ r222830Peter Grehan2011-06-281-1/+1
| | |\ | |_|/ |/| |
* | | Don't attempt to create the base directory when -d is specified.Xin LI2011-06-151-1/+1
| | | | | | | | | | | | MFC after: 1 month