summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove leading '+' from the -u arg description; mbing@nfr.netmillert2001-06-051-2/+2
|
* *** empty log message ***millert2000-11-261-3/+3
|
* Support -u username option. Loosely based on FreeBSD's changes.millert2000-11-262-97/+210
| | | | | | I've also restructured things a bit to cut the number of master.passwd parses in half from 6 to 3. We can't really get away with fewer than that without sacrificing locality in the .db files.
* Change all option list specifications to ".Bl -tag -width Ds". Most manaaron2000-11-091-2/+2
| | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-3/+3
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otheraaron2000-03-191-3/+3
| | | | cleanup along the way.
* Completely forgot about that one (yep, it has been in my tree for a longespie1999-06-061-1/+5
| | | | while).
* remove trailing whitespace, some Nm cleanupaaron1999-06-051-3/+3
|
* remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1999-05-231-2/+2
| | | | is used instead; kwesterback@home.com
* Don't display the string associated with errno for "basedir too long"alex1999-04-211-3/+6
| | | | | | | diagnostic. Issue a diagnostic message if the master.passwd file isn't specified as an absolute path.
* all .Nm macros should have an argument in SYNOPSIS; also misc cleanupaaron1999-04-021-2/+2
|
* cleanupaaron1999-03-111-23/+25
|
* Fix a u_int vs. off_t issue and provide an estimate of the numbermillert1998-07-151-10/+9
| | | | | | of elements in the hash based on master.passwd file size, assuming an average 128bytes per entry. This is only an estimate so it doesn't have to be exact.
* Don't link in a custom version of getpwent.c since we don't use any routines from it (verified with gprof call graph)millert1998-07-151-7/+1
|
* Move loop that is executed 6 times into its own function to improve readability.millert1998-07-151-228/+121
|
* sizeof(uid_t) and sizeof(gid_t) not sizeof(int)millert1998-07-141-13/+12
|
* Get rid of unused empty file, pw_scan.h. Nothing uses it anymore.millert1998-07-142-29/+139
| | | | | | | | When building .db versions of passwd and master.passwd, go split the loops into three (one per key type) so that we get good locality withing the .db file for getnext style operations (getpwent). With this change I see about a 20% speedup of getpwent() on very large passwd files.
* clear flag before pw_scan(); lukemderaadt1998-06-101-3/+4
|
* document that "file" should be an abs-path; noted by zappaman@bsdsun.compsci.buu.ac.thderaadt1998-06-031-1/+6
|
* use correct db pointer; fairderaadt1998-04-261-6/+6
|
* indentderaadt1998-04-261-6/+6
|
* make static for install purposesderaadt1998-04-111-1/+2
|
* first cut at performance enhancing heuristicderaadt1997-12-081-3/+17
|
* $OpenBSD$deraadt1997-09-211-2/+1
|
* When the disk gets full, abort properly instead of creating emptyderaadt1997-09-151-3/+4
| | | | | | | | | | | | passwd databases. I found this while analysing netbsd pr#1328 from August 10, 1995 by hag@gnu.ai.mit.edu. A sample fix was supplied on 14, May 96 by greywolf@defender.VAS.viewlogic.com. The PR mentioned about 6 or 7 places where this could happen. Greywolf and I had made all of the fixes ourselves in openbsd a while back (except one subtle one which he pointed out but I had missed), but not a single one of the fixes is found in the netbsd source tree... I wonder if Perry has an exploit for this problem, and perhaps he's using it? Another damn good reason for making /tmp and /var seperate partitions.
* From NetBSD: Warn about potentially unsafe uid/gid overrides.millert1997-01-161-3/+15
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* kill __yp_token.downsj1996-10-161-9/+6
|
* Add -c flag from FreeBSD.downsj1996-09-283-6/+22
|
* limit basedir lengthderaadt1996-08-301-1/+3
|
* document -d flagmillert1996-08-021-1/+5
|
* libutilderaadt1996-05-224-178/+6
|
* looks like greywolf and i fixed netbsd pr#1328. pwd_mkdb on a filled rootderaadt1996-05-141-6/+10
| | | | filesystem would result in gibbled passwd databases.
* strdup re-generated path in pwd_mkdb; "make distribution" passwd files withderaadt1996-05-041-2/+2
| | | | proper arguments
* add "-d basedir" flag to pwd_mkdb. the use of "chroot" is incompatiblederaadt1996-04-231-13/+43
| | | | with our cross compilation/installation goals...
* initial import of NetBSD treederaadt1995-10-185-0/+746