summaryrefslogtreecommitdiffstats
path: root/pw/pw_vpw.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix up setgrent(3) to have a POSIX-compliant prototype.Ed Schouten2016-07-311-4/+1
| | | | | | | | | | | | | | | | | | | Just like with freelocale(3), I haven't been able to find any piece of code that actually makes use of this function's return value, both in base and in ports. The reason for this is that FreeBSD seems to be the only operating system to have such a prototype. This is why I'm deciding to not use symbol versioning for this. It does seem that the pw(8) utility depends on the function's typing and already had a switch in place to toggle between the FreeBSD and POSIX variant of this function. Clean this up by always expecting the POSIX variant. There is also a single port that has a couple of local declarations of setgrent(3) that need to be patched up. This is in the process of being fixed. PR: 211394 (exp-run)
* Remove usage of _WITH_GETLINE from usr.sbinBaptiste Daroussin2016-07-301-1/+0
|
* Remove some unneeded headersBaptiste Daroussin2016-03-261-1/+0
| | | | Found by 'include-what-you-use'
* Remove useless assignement of linelenBaptiste Daroussin2015-12-291-2/+0
|
* pw: fail if an invalid entry is found while parsing master.passwd and groupBaptiste Daroussin2015-07-071-0/+7
| | | | | | PR: 198554 Reported by: diaran <fbsd@centraltech.co.uk> MFC after: 2 days
* Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.Baptiste Daroussin2012-12-271-169/+67
|
* Teach pw(8) about how to use pw/gr API to reduce code duplicationBaptiste Daroussin2012-10-301-15/+1
| | | | MFC after: 2 months
* Use strlcpy(3) to replace the idiomaticRobert Drehmel2004-06-171-4/+2
| | | | | | | strncpy(d, s, l); d[l - 1] = '\0'; statements.
* Portability fixes for other bsd4.4 derivatives.David Nugent2000-01-151-1/+3
|
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
|
* 1) Do not blindly ignore file update errors which may occur due to concurrentDavid Nugent1999-02-231-0/+316
updating 2) Add -V <etcdir>, which allows maintaining user/group database in alternate locations other than /etc.