Up to [local] / src / usr.sbin / pwd_mkdb
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.61 / (download) - annotate - [select for diffs], Wed Apr 19 12:58:16 2023 UTC (13 months, 1 week ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
HEAD
Changes since 1.60: +1 -2 lines
Diff to previous 1.60 (colored)
remove duplicate includes
Revision 1.60 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:51 2022 UTC (17 months, 3 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.59: +1 -2 lines
Diff to previous 1.59 (colored)
userspace: remove vestigial '?' cases from top-level getopt(3) loops getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
Revision 1.59 / (download) - annotate - [select for diffs], Sun Nov 28 19:28:42 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.58: +7 -5 lines
Diff to previous 1.58 (colored)
Stop using MAXBSIZE to eliminate sys/param.h including (which injects a ton of namespace intrusion). Create local sizes, and refactor some code along the way. ok millert
Revision 1.58 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:19 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)
For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
Revision 1.57 / (download) - annotate - [select for diffs], Thu Oct 17 21:54:29 2019 UTC (4 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.56: +6 -6 lines
Diff to previous 1.56 (colored)
Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX. This is the userland portion. OK deraadt@ sashan@
Revision 1.56 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:49 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored)
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Revision 1.55 / (download) - annotate - [select for diffs], Tue Oct 9 12:33:40 2018 UTC (5 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.54: +1 -5 lines
Diff to previous 1.54 (colored)
Go back to hard-coding 4096 for the bucket size for now. Using the optimal filesystem block size results in a larger file on the install media.
Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 18 03:05:42 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.53: +8 -3 lines
Diff to previous 1.53 (colored)
Account from the fact that we store ech entry three times when estimating the number of hash table elements. Also set the bucket size to be the optimal file system block size instead of hard-coding to 4096. OK tb@
Revision 1.53 / (download) - annotate - [select for diffs], Thu Nov 5 15:10:11 2015 UTC (8 years, 6 months ago) by semarie
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.52: +1 -3 lines
Diff to previous 1.52 (colored)
revert sys/kern/kern_pledge.c 1.103 and reenable pledge in pwd_mkdb ok deraadt@
Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 5 13:48:51 2015 UTC (8 years, 6 months ago) by semarie
Branch: MAIN
Changes since 1.51: +3 -1 lines
Diff to previous 1.51 (colored)
quick fix for a regression introduced by sys/kern/kern_pledge.c 1.103 ok benno phessler
Revision 1.51 / (download) - annotate - [select for diffs], Fri Oct 16 22:54:35 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored)
pledge "stdio rpath wpath cpath getpw fattr flock"
Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 27 19:11:37 2015 UTC (8 years, 9 months ago) by gsoares
Branch: MAIN
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)
missing va_end(); OK deraadt
Revision 1.49 / (download) - annotate - [select for diffs], Wed Aug 19 17:58:32 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)
add missing prototype
Revision 1.48 / (download) - annotate - [select for diffs], Fri Apr 24 21:14:48 2015 UTC (9 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.47: +26 -7 lines
Diff to previous 1.47 (colored)
Write (uid_t)-1 as -1 instead of UID_MAX in the v7 passwd file. OK deraadt@
Revision 1.47 / (download) - annotate - [select for diffs], Wed Apr 15 16:43:11 2015 UTC (9 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.46: +59 -61 lines
Diff to previous 1.46 (colored)
Convert error/errorx/errorc functions -> fatal/fatalx/fatalc and make then take a printf format string instead of requiring the caller to snprintf into a buffer first. OK deraadt@
Revision 1.46 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:19 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.45: +11 -8 lines
Diff to previous 1.45 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.45 / (download) - annotate - [select for diffs], Mon Aug 25 07:50:26 2014 UTC (9 years, 9 months ago) by doug
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)
Delete secret or secret-derived data with explicit_bzero. concept ok deraadt@ diff looks ok tedu@
Revision 1.44 / (download) - annotate - [select for diffs], Tue May 20 01:25:24 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.43: +15 -9 lines
Diff to previous 1.43 (colored)
Use errc/warnc to simplify code. Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
Revision 1.43 / (download) - annotate - [select for diffs], Fri Jan 8 13:29:08 2010 UTC (14 years, 4 months ago) by oga
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored)
Don't leak the fds we open in cp() to copy one file from another. from Igor Zinovik; thanks! ok millert@
Revision 1.42 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:54 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.41: +1 -15 lines
Diff to previous 1.41 (colored)
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 4 18:11:35 2009 UTC (14 years, 8 months ago) by ajacoutot
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)
Typo: chance -> change ok millert@
Revision 1.40 / (download) - annotate - [select for diffs], Wed Jun 25 14:51:27 2008 UTC (15 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)
Add _PW_BUF_LEN define and use it instead of hard-coding 1024 for the buffer size. OK deraadt@
Revision 1.39 / (download) - annotate - [select for diffs], Mon Mar 17 20:30:16 2008 UTC (16 years, 2 months ago) by sobrado
Branch: MAIN
Changes since 1.38: +3 -4 lines
Diff to previous 1.38 (colored)
sync the synopsis and usage; "usage:" is lowercase ok jmc@
Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 8 00:05:09 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.37: +13 -19 lines
Diff to previous 1.37 (colored)
spacing
Revision 1.37 / (download) - annotate - [select for diffs], Sat Jun 28 20:37:29 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)
() to (void)
Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 8 21:14:55 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.35: +13 -24 lines
Diff to previous 1.35 (colored)
Sanity check username length and convert to ANSI function headers.
Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 2 23:36:54 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.34: +3 -7 lines
Diff to previous 1.34 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 13 18:04:07 2003 UTC (21 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.33: +6 -9 lines
Diff to previous 1.33 (colored)
Clarify the -d option and allow the passwd file argument to not be a fully qualified pathname if -d was specified (since we take the basename in that case anyway). deraadt@ OK
Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 28 16:58:39 2003 UTC (21 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)
Check strdup() rval for NULL; noticed by mpech@
Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 21 22:13:20 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)
Rename shadow group to _shadow This means the instructions in the previous commit are now wrong (replace shadow with _shadow and all will be well).
Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 21 21:25:19 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.30: +17 -2 lines
Diff to previous 1.30 (colored)
Add a "shadow" group and make the shadow passwd db readable by that group. This changes getpw* to always try the shadow db first and then fall back to the db w/o password hashes. In the future, /usr/libexec/auth/login_passwd (and others) will be setgid shadow instead of setuid root. OK deraadt@ If you track -current you should do the following: o add group shadow to /etc/group o chgrp shadow /etc/spwd.db o chmod 640 /etc/spwd.db o rebuild and install src/usr.sbin/pwd_mkdb You do not need to rebuild libc yet, but it would't hurt to do so.
Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 2 06:42:29 2002 UTC (22 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)
minor KNF
Revision 1.29 / (download) - annotate - [select for diffs], Wed May 29 18:39:00 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)
more strlcat and strlcpy
Revision 1.28 / (download) - annotate - [select for diffs], Wed May 22 09:09:32 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)
more strcpy/sprintf death; mpech ok
Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 16 21:28:08 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.26: +11 -11 lines
Diff to previous 1.26 (colored)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Revision 1.26 / (download) - annotate - [select for diffs], Mon Sep 17 14:30:39 2001 UTC (22 years, 8 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored)
skip to uid field, not gid millert@ ok
Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 16 18:22:04 2001 UTC (22 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.24: +40 -27 lines
Diff to previous 1.24 (colored)
Add -s flag to only update secure .db file (/etc/spwd.db). Can be used in conjunction with -u user when only the password has changed.
Revision 1.23.2.1 / (download) - annotate - [select for diffs], Thu Jun 7 17:06:22 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_9
Changes since 1.23: +7 -6 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)
Pull in patch from current: Errata (005): pwd_mkdb(8) corrupts /etc/pwd.db when modifying an existing user. Fix (millert): Close PR 1854; mpech@prosoft.org.lv o use correct db pointers o don't try to star out an empty password
Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 7 16:21:49 2001 UTC (23 years ago) by millert
Branch: MAIN
Changes since 1.23: +7 -6 lines
Diff to previous 1.23 (colored)
Close PR 1854; mpech@prosoft.org.lv o use correct db pointers o don't try to star out an empty password
Revision 1.23 / (download) - annotate - [select for diffs], Sun Nov 26 19:35:46 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)
*** empty log message ***
Revision 1.22 / (download) - annotate - [select for diffs], Sun Nov 26 01:23:12 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.21: +200 -95 lines
Diff to previous 1.21 (colored)
Support -u username option. Loosely based on FreeBSD's changes. 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.
Revision 1.20.4.1 / (download) - annotate - [select for diffs], Fri Oct 6 21:24:22 2000 UTC (23 years, 8 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)
Pull in patch from current: Fix (millert): warnx?/errx? paranoia (use "%s" not a bare string unless it is a 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).
Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 30 16:00:26 2000 UTC (23 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)
warnx?/errx? paranoia (use "%s" not a bare string unless it is a 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).
Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 21 21:15:12 1999 UTC (25 years, 1 month ago) by alex
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_6_BASE,
OPENBSD_2_6
Branch point for: OPENBSD_2_7
Changes since 1.19: +6 -3 lines
Diff to previous 1.19 (colored)
Don't display the string associated with errno for "basedir too long" diagnostic. Issue a diagnostic message if the master.passwd file isn't specified as an absolute path.
Revision 1.19 / (download) - annotate - [select for diffs], Wed Jul 15 19:33:28 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.18: +9 -10 lines
Diff to previous 1.18 (colored)
Fix a u_int vs. off_t issue and provide an estimate of the number 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.
Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 15 00:50:19 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.17: +121 -228 lines
Diff to previous 1.17 (colored)
Move loop that is executed 6 times into its own function to improve readability.
Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 14 23:26:33 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.16: +12 -13 lines
Diff to previous 1.16 (colored)
sizeof(uid_t) and sizeof(gid_t) not sizeof(int)
Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 14 16:13:03 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.15: +139 -29 lines
Diff to previous 1.15 (colored)
Get rid of unused empty file, pw_scan.h. Nothing uses it anymore. 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.
Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 10 09:00:48 1998 UTC (25 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)
clear flag before pw_scan(); lukem
Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 26 10:10:51 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored)
use correct db pointer; fair
Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 26 10:08:42 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)
indent
Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 8 07:34:29 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.11: +17 -3 lines
Diff to previous 1.11 (colored)
first cut at performance enhancing heuristic
Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 15 10:15:27 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)
When the disk gets full, abort properly instead of creating empty 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.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 16 03:58:23 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.9: +15 -3 lines
Diff to previous 1.9 (colored)
From NetBSD: Warn about potentially unsafe uid/gid overrides.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 15 23:44:14 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)
getopt(3) returns -1 when out of args, not EOF, whee!
Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 16 09:16:14 1996 UTC (27 years, 7 months ago) by downsj
Branch: MAIN
Changes since 1.7: +6 -9 lines
Diff to previous 1.7 (colored)
kill __yp_token.
Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 28 05:44:33 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.6: +14 -3 lines
Diff to previous 1.6 (colored)
Add -c flag from FreeBSD.
Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 30 14:24:48 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)
limit basedir length
Revision 1.5 / (download) - annotate - [select for diffs], Wed May 22 11:35:54 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)
libutil
Revision 1.4 / (download) - annotate - [select for diffs], Tue May 14 01:06:15 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.3: +10 -6 lines
Diff to previous 1.3 (colored)
looks like greywolf and i fixed netbsd pr#1328. pwd_mkdb on a filled root filesystem would result in gibbled passwd databases.
Revision 1.3 / (download) - annotate - [select for diffs], Sat May 4 08:13:54 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)
strdup re-generated path in pwd_mkdb; "make distribution" passwd files with proper arguments
Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 23 21:55:49 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +43 -13 lines
Diff to previous 1.1 (colored)
add "-d basedir" flag to pwd_mkdb. the use of "chroot" is incompatible with our cross compilation/installation goals...
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:48:01 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:48:01 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Initial revision