Commit Graph

55 Commits

Author SHA1 Message Date
agc
9f1aac5bb3 Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
2003-10-13 15:36:33 +00:00
agc
326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
lukem
826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
itojun
d0f8b66023 strncpy -> strlcpy 2003-05-17 19:18:59 +00:00
lukem
17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
tv
9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
wiz
a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
lukem
92a4d3d477 pwd_mkdb doesn't need a private version of getpwent.o any more. 2002-01-15 11:41:43 +00:00
jmc
0ce9aa8e6c Add pwd_mkdb as a toolchain bit for builds 2001-12-07 02:28:53 +00:00
ad
e04fd20395 Clean up previous. 2001-08-19 09:01:47 +00:00
ad
e13d145336 Speed things up a bit. Parts dredged from OpenBSD/FreeBSD.
- Add -u option, to update one user's records only.
- Add -s option, to update the secure database only.
- Give us roughly 1MB of cache per 50kB of password file, but keep within
  a 2MB minimum and 8MB maximum.
- Tidy a little.
2001-08-18 19:29:31 +00:00
abs
46bc122c3c Do not try to reference dbm(3) 2001-07-06 18:07:15 +00:00
agc
2add959bb8 Mention that useradd(8), userdel(8) and usermod(8) all conform to the
locking scheme, and cross reference those utilities.
2001-02-21 12:14:37 +00:00
tron
d78c1c9e2d Back out last change on sugestion by Klaus Klein:
While it was technically correct it was confusing for the user.
2000-12-07 12:53:14 +00:00
tron
1bfef38d9b The default directory is "", not "/". 2000-12-06 13:54:08 +00:00
tron
f8f9801395 Use empty string as default prefix so that e.g "/etc/spwd.db" is used
instead of "//etc/spwd.db".
2000-11-20 14:09:36 +00:00
ad
4ed69cc393 Remove extraneous M_32_SWAP(). 2000-08-08 12:08:17 +00:00
ad
b11d8d3fbf - Move some duplicated code from main() into subroutines. In doing this,
fix -p (it was broken if used in conjunction with either -B or -L).
- const, KNF.
2000-08-07 13:19:27 +00:00
ad
07e87cf61f Xr pw_mkdb. 2000-08-07 12:39:31 +00:00
itojun
bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
mycroft
c077907823 Add explicit endianness overrides. 2000-01-23 19:59:32 +00:00
abs
65b09cecfc Remove obsolete reference to mkpasswd(8) 1999-12-17 13:11:22 +00:00
mycroft
1f86e5830d const poisoning. 1998-07-27 00:52:00 +00:00
lukem
c5b39b1d5a treat single "+" as "+:::::::::" (pw_scan() doesnt like former). minor KNF 1998-06-08 03:23:07 +00:00
lukem
77a05c5b00 clear flags before calling pw_scan() 1998-06-07 14:40:29 +00:00
fair
c0ad440bd6 fix my boo-boo documented by PR#5293 1998-04-14 20:20:16 +00:00
fair
c85ab8db8e A few more error message changes for better information. 1998-04-14 04:51:19 +00:00
fair
dd15ee1ce0 Handle the problem cited in PR#1328 (no checking for I/O errors).
Improve some of the error messages to provide more accurate information.

Repaired a bug by inspection (function pointer reference through a
free'd DB structure!! How did this *ever* work?)
1998-04-13 23:12:45 +00:00
fair
f97bb69df7 grammatical errors fix from PR#4409 1997-11-05 18:46:07 +00:00
lukem
0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
lukem
149f1867d1 rcsid fascism 1997-10-18 04:36:50 +00:00
lukem
95ce1aeabe WARNSify, getopt returns -1 not EOF 1997-10-17 12:18:16 +00:00
mrg
c72a99c7d0 merge lite-2 1997-10-17 06:46:02 +00:00
mrg
f644e619a5 find "namespace.h" correctly... 1997-07-25 06:54:00 +00:00
mrg
bda99ff7a0 find "namespace.h" ... 1997-07-23 03:10:54 +00:00
gwr
10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
thorpej
a0e4cacd4c Print a warning to stderr if a YP inclusion (`+') specifies a value of
0 for uid or gid.  Based on a patch posted to tech-userlevel by
Paul Kranenburg <pk@NetBSD.ORG>.
1996-11-24 21:13:27 +00:00
lukem
9e8841e359 Implement '-d directory' option, to override the default of '/'.
Useful for building ~ftp/etc/pwd.db without using chroot or unionfs.
Inspired by FreeBSD, closes [bin/2566]
1996-11-22 05:37:29 +00:00
jtc
a65aba5bdb Updated to use new password file functions in libutil.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:19:09 +00:00
phil
5354239906 Improvements to YP support from Jason Downs. 1995-07-28 07:13:04 +00:00
phil
72065007ac Improvements to YP support from Jason Downs. 1995-07-28 07:01:32 +00:00
cgd
d8806814a6 specify man pages the new way. 1994-12-22 11:32:57 +00:00
mycroft
97aa17a3be Correct file names in FILES section. 1994-09-16 21:05:14 +00:00
mycroft
9839fe449e Update to 4.4-Lite version. 1994-08-28 23:32:47 +00:00
mycroft
13c12b62f7 Import original 4.4-Lite version. 1994-08-28 23:16:23 +00:00
cgd
506145e312 DTRT is a too-restricve umask is specified. Bug pointed out by Andrew Chernov. 1994-04-10 07:05:59 +00:00
jtc
50e825b111 Got bored, converted yet another manpage to -mandoc format 1993-10-06 19:07:02 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00