summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead declarationBaptiste Daroussin2015-05-291-1/+0
| | | | | PR: 195928 MFC after: 2 days
* Export a list of VM objects in the system via a sysctl. The list can beJohn Baldwin2015-05-271-0/+2
| | | | | | | | | | examined via 'vmstat -o'. It can be used to determine which files are using physical pages of memory and how much each is using. Differential Revision: https://reviews.freebsd.org/D2277 Reviewed by: alc, kib MFC after: 2 weeks Sponsored by: Norse Corp, Inc. (forward porting to HEAD/10)
* Remove extendline definitionBaptiste Daroussin2015-05-101-3/+0
| | | | Remove now unused PWBUFSZ define
* Use calloc(3) instead of malloc(3) + memset(3)Baptiste Daroussin2015-05-101-2/+4
| | | | While here check the return of calloc(3)
* The initial logic for allocating the new string was wrong, the conversionBaptiste Daroussin2015-05-101-5/+2
| | | | | to strndup(3) duplicated the same mistake, actually strdup(3) is good enough to allocate the new string.
* Use strndup(3) instead of malloc(3) + memcpy(3)Baptiste Daroussin2015-05-101-7/+11
| | | | Check the return of strndup
* Remove useless call to extendarrayBaptiste Daroussin2015-05-101-1/+0
|
* The pwdb function is only used once to check the database rename itBaptiste Daroussin2015-05-101-10/+4
| | | | pwdb_check and simplify it accordingly
* if the check of the pw db fails return the failed valueBaptiste Daroussin2015-05-101-37/+35
|
* Some style(9) fixesBaptiste Daroussin2015-05-101-9/+16
|
* Replace sprintf(3) with snprintf(3)Baptiste Daroussin2015-05-091-7/+7
|
* Use snprintf(3) instead of sprintf(3)Baptiste Daroussin2015-05-091-8/+7
| | | | Remove useless "else"
* Remove now unused LNBUFSZ buffer sizeBaptiste Daroussin2015-05-091-3/+0
|
* Return from the function as early as possibleBaptiste Daroussin2015-05-091-117/+116
| | | | This reduces the depth of the if statements and improves clarity of the code
* Remove some uneeded headersBaptiste Daroussin2015-05-093-8/+0
|
* Remove unneeded headersBaptiste Daroussin2015-05-091-8/+0
|
* Replace malloc(3) + strcpy(3) + strcat(3) by asprintf(3)Baptiste Daroussin2015-05-091-3/+1
|
* Use snprintf(3) instead of strcpy(3) + strncat(3)Baptiste Daroussin2015-05-091-2/+1
|
* Use sbuf(9) instead of homebrewed buffered stringBaptiste Daroussin2015-05-093-62/+47
|
* Partially revert 278642Baptiste Daroussin2015-02-131-1/+12
| | | | | | On reinstall (overwrite) install(1) does not handle chflags Reported by: ian
* Use PRECIOUSPROG instead of custom code to handle schgBaptiste Daroussin2015-02-121-12/+1
| | | | | | This allows to preserve schg when installed with -DNO_ROOT MFC after: 1 week
* Clean up more usb related files when MK_USB == no when dealing withEnji Cooper2015-02-040-0/+0
|\ | | | | | | | | | | | | | | manpages, libraries, and binaries MFC after: 1 week X-MFC with: r278135 Sponsored by: EMC / Isilon Storage Division
* | Revert r277652Baptiste Daroussin2015-01-262-9/+2
| | | | | | | | | | | | uid and gid are never and should never be negative. The pw(8) manpage clearly states the -u and -g arguments are for uids/gids, hence using negative values is abusing a bug in former versions of pw(8)
* | gr_equal(): Fix a crash that could occur if the first group's member listMark Johnston2015-01-251-15/+10
| | | | | | | | | | | | | | | | was longer than the second's. There is no need to compute and compare the member list lengths in a separate pass, since we now just return false when comparing member names if the list lengths are not equal. MFC after: 2 weeks
* | Allow negative numbers in -u and -g optionsBaptiste Daroussin2015-01-242-2/+9
| | | | | | | | | | PR: 196514 MFC after: 1 week
* | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-4/+2
| | | | | | | | Reduce overlinking
* | Convert to LIBADD.Brad Davis2014-11-241-2/+1
|/ | | | Reviewed by: bapt
* Fix wrong message when using pw -V with a non existent directoryBaptiste Daroussin2014-11-121-0/+8
| | | | | | | Add a regression test about it PR: 194971 Submitted by: Freddy DISSAUX <bugzilla@dsx.bsdsx.fr>
* Fix renaming a group via the gr_copy functionBaptiste Daroussin2014-10-281-5/+12
| | | | | | | | | | Add a regression test to pw(8) because the bug was discovered via using: pw groupmod PR: 187189 Reported by: mcdouga9@egr.msu.edu Tested by: mcdouga9@egr.msu.edu Patch by: Marc de la Gueronniere
* Ensure pw userdel -u <invalid> do not try to remove rootBaptiste Daroussin2014-10-281-0/+3
| | | | | | Check the uid passed is actually a number as early as possible MFC after: 1 week
* Do not delete the group wheel when bad argument is passed to pw groupdel -gBaptiste Daroussin2014-10-281-0/+5
| | | | | | | | | | | | Check that the -g argument is actually a number, if not report an error. This argument is converted without checking with atoi(3) later so without this check it converts any alpha entries into 0 meaning it deletes the group wheel Add a regression test about it PR: 90114 Reported by: bkoenig@cs.tu-berlin.de MFC after: 1 week
* Fix a regression in pw usermod -G listBaptiste Daroussin2014-10-281-1/+19
| | | | | | | | | | The user was perperly adding the to different groups from "list" but was not removed from the other groups it could have belong to. While here add a regression test about this bug PR: 185666 Reported by: sub.mesa@gmail.com MFC after: 1 week
* When a group is renamed then the group has been invalidated for sure.Baptiste Daroussin2014-10-281-3/+6
| | | | | | | | | In that case get the group information using the new name. Add a regression test about this bug PR: 193704 Reported by: az
* Two more places where login_setcryptfmt() defaults to MD5 were missedDag-Erling Smørgrav2014-10-091-2/+2
| | | | | | in r252688. MFC after: 3 days
* - Add a test for bug 191427 where pw(8) will go into an infinite loopBrad Davis2014-10-021-0/+6
| | | | | Reviewed by: will MFC after: 1 month
* Convert devd's client socket to type SOCK_SEQPACKET.Alan Somers2014-08-140-0/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change consists of two merges from projects/zfsd/head along with the addition of an ATF test case for the new functionality. sbin/devd/tests/Makefile sbin/devd/tests/client_test.c Add ATF test cases for reading events from both devd socket types. r266519: sbin/devd/devd.8 sbin/devd/devd.cc Create a new socket, of type SOCK_SEQPACKET, for communicating with clients. SOCK_SEQPACKET sockets preserve record boundaries, simplying code in the client. The old SOCK_STREAM socket is retained for backwards-compatibility with existing clients. r269993: sbin/devd/devd.8 Fix grammar bug. CR: https://reviews.freebsd.org/rS266519 MFC after: 5 days Sponsored by: Spectra Logic
| * IFC @266473Alan Somers2014-05-213-0/+555
| |\
| * \ IFC @264767Alan Somers2014-04-233-21/+527
| |\ \
| * \ \ IFC @256277Alan Somers2013-10-101-0/+819
| |\ \ \ | | | | | | | | | | | | | | | Approved by: ken (mentor)
| * \ \ \ IFC @253398Xin LI2013-07-174-81/+440
| |\ \ \ \
| * \ \ \ \ IFC @247348.Xin LI2013-02-2611-250/+381
| |\ \ \ \ \
| * \ \ \ \ \ MFCAlexander Motin2012-11-2715-88/+2200
| |\ \ \ \ \ \
| * \ \ \ \ \ \ MFC @ r241285Alexander Motin2012-11-273-1/+694
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ IFC @238412.Xin LI2012-07-132-6/+223
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ MFCAlexander Motin2012-05-157-24/+437
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ IFC @230489 (pending review).Xin LI2012-01-239-103/+3650
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ Integrate FreeBSD/head into projects/zfsd/head as of SVN revision 224870.Justin T. Gibbs2011-08-151-1/+1
| |\ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ Integrate from Head into ZFSD feature branch as of revision r224141.Justin T. Gibbs2011-07-171-0/+1272
| |\ \ \ \ \ \ \ \ \ \ \ \
* | | | | | | | | | | | | | Minor style tweaks.Pedro F. Giffuni2014-08-131-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: OpenBSD (CVS rev. 1.7) MFC after: 3 days
* | | | | | | | | | | | | | pw: fix up deletion of users from groupsMateusz Guzik2014-06-271-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previuosly given 'foo,bar' members, removing 'foo' would result in an infinite loop. PR: 191427 Submitted by: Voradesh Yenbut <yenbut cs.washington.edu> MFC after: 1 week