]> git.cameronkatri.com Git - pw-darwin.git/log
pw-darwin.git
21 years agoRemove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, make
Philippe Charnier [Sun, 18 Jan 2004 21:46:39 +0000 (21:46 +0000)]
Remove unused includes. Make it WARNS=6 friendly. Concerning bin/2442, make
a new function dup_shell() to replace ok_shell() and make it unconditionnally
strdup() its result to make the caller's code simplier. Change ok_shell() to
just return an integer value suitable for tests (it was used mainly for that
purpose). Do not use strdup() in the caller's code but rely on dup_shell()
that will do the job for us.

PR: bin/2442

21 years agoadd missing endusershell() call. Original version was incorrect.
Philippe Charnier [Sun, 18 Jan 2004 21:33:25 +0000 (21:33 +0000)]
add missing endusershell() call. Original version was incorrect.
PR: bin/2442
Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>

21 years agoAdd a `-H <fd>' option that is like `-h <fd>', but accepts an already
Ian Dowse [Sun, 11 Jan 2004 18:28:08 +0000 (18:28 +0000)]
Add a `-H <fd>' option that is like `-h <fd>', but accepts an already
encrypted password on the specified file descriptor.

PR: bin/22033
MFC after: 2 weeks

21 years ago(mostly) Clean up some const warnings here. The code takes some liberties
Peter Wemm [Sun, 26 Oct 2003 03:51:47 +0000 (03:51 +0000)]
(mostly) Clean up some const warnings here.  The code takes some liberties
because it is the originator of various const strings and knows that they
came from malloc.

21 years agoANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
Mark Murray [Sat, 18 Oct 2003 10:04:16 +0000 (10:04 +0000)]
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.

21 years agomdoc(7): Properly mark C headers.
Ruslan Ermilov [Wed, 10 Sep 2003 19:24:35 +0000 (19:24 +0000)]
mdoc(7): Properly mark C headers.

21 years agomdoc(7): Use the new feature of the .In macro.
Ruslan Ermilov [Mon, 8 Sep 2003 19:57:22 +0000 (19:57 +0000)]
mdoc(7): Use the new feature of the .In macro.

21 years agoDo not compare unsigned int values with ULONG_MAX. The comparison is
Alexander Kabaev [Fri, 11 Jul 2003 05:47:05 +0000 (05:47 +0000)]
Do not compare unsigned int values with ULONG_MAX. The comparison is
always false on 64bit platforms and GCC 3.3.1 issues warning there.

21 years agoTypo.
Mike Makonnen [Tue, 24 Jun 2003 15:20:43 +0000 (15:20 +0000)]
Typo.
This has worked so far because the variable was empty by default.

Submitted by: Kostyuk Oleg <cub@cub.org.ua>

21 years agos/warn/info/
Mike Makonnen [Fri, 20 Jun 2003 19:36:56 +0000 (19:36 +0000)]
s/warn/info/

21 years agoAdd support for the special shell nologin.
Mike Makonnen [Fri, 20 Jun 2003 19:23:55 +0000 (19:23 +0000)]
Add support for the special shell nologin.

Prodded by: mikeh

21 years agoUpdate my email address.
Mike Makonnen [Fri, 20 Jun 2003 16:53:36 +0000 (16:53 +0000)]
Update my email address.

21 years agoDon't forget the -r on the second password prompt.
Mike Makonnen [Fri, 20 Jun 2003 16:52:06 +0000 (16:52 +0000)]
Don't forget the -r on the second password prompt.

PR: bin/53550

21 years agoTidy up. Sort headers.
Mark Murray [Sat, 14 Jun 2003 18:42:37 +0000 (18:42 +0000)]
Tidy up. Sort headers.

21 years agoThe .Xr utility. Spelling. Put NIS under .Tn
Philippe Charnier [Sun, 8 Jun 2003 14:28:38 +0000 (14:28 +0000)]
The .Xr utility. Spelling. Put NIS under .Tn

21 years agoAdd information about the log file.
Tom Rhodes [Thu, 8 May 2003 00:28:36 +0000 (00:28 +0000)]
Add information about the log file.

PR: 35575
Submitted by: "Simon L. Nielsen" <simon@nitro.dk> (original version)

21 years agoMake GCC 3.3 happy with rcsid[], sccs[], and copyright[].
David E. O'Brien [Sat, 3 May 2003 19:44:46 +0000 (19:44 +0000)]
Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].

21 years agoBrucify.
Dag-Erling Smørgrav [Thu, 10 Apr 2003 10:26:18 +0000 (10:26 +0000)]
Brucify.

21 years agoCorrectly detect the case where a password entry was changed while we were
Dag-Erling Smørgrav [Wed, 9 Apr 2003 18:20:51 +0000 (18:20 +0000)]
Correctly detect the case where a password entry was changed while we were
preparing to edit it.

PR: bin/50563

21 years agoAvoid clobbering the gecos field, as we intend to use the original later.
Dag-Erling Smørgrav [Wed, 9 Apr 2003 18:18:42 +0000 (18:18 +0000)]
Avoid clobbering the gecos field, as we intend to use the original later.

PR: bin/50563

21 years agoApply the correct fix for bin/50679: don't mess around with process groups
Dag-Erling Smørgrav [Wed, 9 Apr 2003 16:39:47 +0000 (16:39 +0000)]
Apply the correct fix for bin/50679: don't mess around with process groups
or the tty, just block selected signals in the parent like system(3) does.
Many thanks to bde for his assistance in finding the correct solution.

PR: bin/50679

21 years agoBand-aid for the "^C kills the editor" problem. I haven't yet found the
Dag-Erling Smørgrav [Tue, 8 Apr 2003 18:04:30 +0000 (18:04 +0000)]
Band-aid for the "^C kills the editor" problem.  I haven't yet found the
proper way to fix this.  The way this works is to prepend "exec " to
the editor command to eliminate the "shell in the middle" which prevents
us from properly reawakening the editor after a SIGTSTP.

PR: bin/50679

21 years agostyle.Makefile(5)
David E. O'Brien [Fri, 4 Apr 2003 17:49:21 +0000 (17:49 +0000)]
style.Makefile(5)

21 years agoDocument the -g option in the usage message.
Mike Makonnen [Sun, 23 Mar 2003 23:06:44 +0000 (23:06 +0000)]
Document the -g option in the usage message.

Approved by: markm (mentor)(implicit)

21 years agoAdd a -g option to specify a default login group.
Mike Makonnen [Thu, 20 Mar 2003 16:36:03 +0000 (16:36 +0000)]
Add a -g option to specify a default login group.

Approved by: markm (mentor)(implicit)

21 years agoo initialize a couple of local flags so the user can re-edit groups
Mike Makonnen [Wed, 19 Mar 2003 08:07:15 +0000 (08:07 +0000)]
o initialize a couple of local flags so the user can re-edit groups
  next time the subroutine is re-entered
o s/configrun/configflag/
o Make the prompt make sense if the user was creating a configuration file

Approved by: markm (mentor)(implicit)

21 years agoMake pw_edit() use /bin/sh to interpret the EDITOR environment
David Schultz [Mon, 17 Mar 2003 02:12:55 +0000 (02:12 +0000)]
Make pw_edit() use /bin/sh to interpret the EDITOR environment
variable.

PR: 48748
Reviewed by: mike (mentor)

21 years agomdoc(7) police: Scheduled sweep.
Ruslan Ermilov [Mon, 24 Feb 2003 22:53:26 +0000 (22:53 +0000)]
mdoc(7) police: Scheduled sweep.

21 years agoUpdate copyright.
Mike Makonnen [Sun, 16 Feb 2003 18:06:04 +0000 (18:06 +0000)]
Update copyright.

21 years agoCondense the output to one line per removed user. For user's who
Mike Makonnen [Sun, 16 Feb 2003 18:04:06 +0000 (18:04 +0000)]
Condense the output to one line per removed user. For user's who
want the more verbose version, there's a -v option.

Approved by: markm (mentor)

21 years agoThere is no sense to use random random() and arc4random() in the same program.
Andrey A. Chernov [Tue, 11 Feb 2003 02:17:11 +0000 (02:17 +0000)]
There is no sense to use random random() and arc4random() in the same program.
Switch to arc4random() completely.

21 years agoRevisit the shell special characters issue and settle it once-and-forall.
Mike Makonnen [Sun, 9 Feb 2003 18:29:09 +0000 (18:29 +0000)]
Revisit the shell special characters issue and settle it once-and-forall.
All characters will be accepted, and pw(8) can sort out which ones it
will allow and which ones it won't.

Approved by: markm (mentor)
Prodded by: Philippe Bourcier <philippe@cyberabuse.org>

21 years agoChange the behaviour of adduser to match the previous incarnation a little more.
Adrian Chadd [Sat, 8 Feb 2003 08:04:53 +0000 (08:04 +0000)]
Change the behaviour of adduser to match the previous incarnation a little more.

If any of the given groups do not exist complain and let the user try again.
This saves the user from discovering at the end of the process that they've
forgotten to add a group or they've typoed.

Thanks to cmc/dougb for pointing out how bad my sh fu actually is.

Original code by: me
Scary sh rewrite by: dougb

Reviewed by: dougb

21 years agoBetter gender-neutral language.
Tony Finch [Tue, 4 Feb 2003 11:12:36 +0000 (11:12 +0000)]
Better gender-neutral language.

Submitted by: sheldonh

21 years agoThis is just a forced-commit to note that the previous commit addresses
Garance A Drosehn [Tue, 28 Jan 2003 01:35:52 +0000 (01:35 +0000)]
This is just a forced-commit to note that the previous commit addresses
PR 28773 (not 28733!).  I have closed both PR 28773 and PR 46890.

21 years agoChanges so the 'pw' command will allow '$' as the last character in a userid
Garance A Drosehn [Tue, 28 Jan 2003 01:21:57 +0000 (01:21 +0000)]
Changes so the 'pw' command will allow '$' as the last character in a userid
or group name (mainly for the benefit of samba).  This pretty much rewrites
he pw_checkname() routine, but should work exactly the same except for the
above change, and that error messages are somewhat more informative.

PR: 28733 46890
Inspired by: example patch written by Terry Lambert
Reviewed by: no objections on freebsd-arch and freebsd-current
MFC plans: no plans, but will do if people want it in stable.

21 years agoback out logging to /var/log/adduser
Max Khon [Fri, 24 Jan 2003 02:05:51 +0000 (02:05 +0000)]
back out logging to /var/log/adduser
(/usr/sbin/pw already logs to /var/log/userlog)

21 years agoIn interactive mode, ask the user if he/she wants to add another
Mike Makonnen [Fri, 24 Jan 2003 00:24:26 +0000 (00:24 +0000)]
In interactive mode, ask the user if he/she wants to add another
user and re-run interactive questions or quit depending on the
answer.

Submitted by: Scot Hetzel <hetzels@westbend.net>
Approved by: markm (mentor)

21 years agoexpr foo -> $((foo))
Max Khon [Thu, 23 Jan 2003 20:18:21 +0000 (20:18 +0000)]
expr foo -> $((foo))

21 years ago- restore an ability to write log of added users (default to
Max Khon [Thu, 23 Jan 2003 20:07:40 +0000 (20:07 +0000)]
- restore an ability to write log of added users (default to
/var/log/adduser, disabled if empty or adduserlog="no")
- do not ask for password in configure mode
- print $passwdtype instead of password in configure mode
- add DATECMD, GREPCMD (not overridable but with full path)

21 years agoDo not loose trailing spaces when printing prompt messages.
Max Khon [Thu, 23 Jan 2003 19:58:16 +0000 (19:58 +0000)]
Do not loose trailing spaces when printing prompt messages.

21 years agoDo not expose password if it is empty and PWF_STANDARD format is requested
Max Khon [Thu, 23 Jan 2003 19:51:48 +0000 (19:51 +0000)]
Do not expose password if it is empty and PWF_STANDARD format is requested

MFC after: 1 week

21 years ago*blush*
Mike Makonnen [Thu, 23 Jan 2003 01:57:30 +0000 (01:57 +0000)]
*blush*
While I'm here properly quote all the other input I neglected
to quote.

Approved by: markm (mentor)(implicit)

22 years agoDon't forget to properly quote input.
Mike Makonnen [Tue, 21 Jan 2003 12:11:35 +0000 (12:11 +0000)]
Don't forget to properly quote input.

Approved by: markm (mentor)(implicit)
Submitted by: Robin Breathe <robin@isometry.net>

22 years agodo not loose trailing space when asking uid
Max Khon [Mon, 20 Jan 2003 17:55:31 +0000 (17:55 +0000)]
do not loose trailing space when asking uid

22 years agoStyle cleanup.
David E. O'Brien [Mon, 30 Dec 2002 09:46:58 +0000 (09:46 +0000)]
Style cleanup.

22 years agoMake WARNS=5 clean.
David E. O'Brien [Mon, 30 Dec 2002 09:45:26 +0000 (09:45 +0000)]
Make WARNS=5 clean.

Tested on: sparc64, Athlon[32]

22 years agoenglish(4) police.
Jens Schweikhardt [Fri, 27 Dec 2002 12:15:40 +0000 (12:15 +0000)]
english(4) police.

22 years agomdoc(7) police: Deal with self-xrefs.
Ruslan Ermilov [Tue, 24 Dec 2002 13:41:48 +0000 (13:41 +0000)]
mdoc(7) police: Deal with self-xrefs.

22 years agomdoc(7) police: more `The .Nm utility' + markup nit.
Ruslan Ermilov [Mon, 23 Dec 2002 15:08:01 +0000 (15:08 +0000)]
mdoc(7) police: more `The .Nm utility' + markup nit.

22 years agoMove the NOTES section to DESCRIPTION. And correct some documentation while
Tom Rhodes [Fri, 20 Dec 2002 01:17:18 +0000 (01:17 +0000)]
Move the NOTES section to DESCRIPTION.  And correct some documentation while
I'm here.

PR: 43756
Submitted by: Gary W. Swearingen <swear@attbi.com>

22 years agoUniformly refer to a file system as "file system".
Ruslan Ermilov [Thu, 12 Dec 2002 17:26:04 +0000 (17:26 +0000)]
Uniformly refer to a file system as "file system".

Approved by: re

22 years agoCorrectly handle files with IFS characters (spaces) in their names when
Tim J. Robbins [Mon, 9 Dec 2002 02:22:50 +0000 (02:22 +0000)]
Correctly handle files with IFS characters (spaces) in their names when
cleaning up temporary files.

Submitted by: Mike Makonnen <mtm@identd.net>
Approved by: re

22 years agomdoc(7) police: overhaul.
Ruslan Ermilov [Wed, 4 Dec 2002 14:44:20 +0000 (14:44 +0000)]
mdoc(7) police: overhaul.

Approved by: re

22 years agoReplace the perl versions of adduser and rmuser with shell script versions.
Scott Long [Tue, 3 Dec 2002 05:41:09 +0000 (05:41 +0000)]
Replace the perl versions of adduser and rmuser with shell script versions.

Submitted by: Mike Makonnen <mtm@identd.net>
Approved by: re

22 years agomdoc(7) police: markup fixes.
Ruslan Ermilov [Wed, 27 Nov 2002 15:31:08 +0000 (15:31 +0000)]
mdoc(7) police: markup fixes.

Approved by: re

22 years agoClarify the unique groups scheme by mentioning that the 002 umask
Tony Finch [Fri, 8 Nov 2002 22:04:31 +0000 (22:04 +0000)]
Clarify the unique groups scheme by mentioning that the 002 umask
is instead of the usual 022 umask, and explain that what the scheme
still prevents is unwanted changes, not prying eyes.

While I'm here, mess with the phrasing and line-breaks a bit.

22 years agoDon't forget to '\n'-terminate new entries. This unbreaks chpass -a.
Dag-Erling Smørgrav [Tue, 29 Oct 2002 13:58:42 +0000 (13:58 +0000)]
Don't forget to '\n'-terminate new entries.  This unbreaks chpass -a.

Submitted by: joerg

22 years agoDon't try to dereference a NULL pw pointer. This would happen when
Joerg Wunsch [Tue, 29 Oct 2002 12:45:32 +0000 (12:45 +0000)]
Don't try to dereference a NULL pw pointer.  This would happen when
attempting to use chpass -a.

22 years agoDo not allow empty GIDs for non-NIS entries.
Maxim Konovalov [Fri, 11 Oct 2002 11:35:30 +0000 (11:35 +0000)]
Do not allow empty GIDs for non-NIS entries.

MFC after: 2 weeks

22 years agoToo strict error checking in rev. 1.22 broke pwd_mkdb(8) in NIS
Maxim Konovalov [Wed, 2 Oct 2002 07:02:46 +0000 (07:02 +0000)]
Too strict error checking in rev. 1.22 broke pwd_mkdb(8) in NIS
environment. An empty UID and GID are valid there.

Spotted by: rwatson

22 years agoDisqualify UID/GID with non-numeric character.
Maxim Konovalov [Wed, 25 Sep 2002 08:49:19 +0000 (08:49 +0000)]
Disqualify UID/GID with non-numeric character.

PR: bin/41721
Reviewed by: tjr, silence on -audit
MFC after: 2 weeks

22 years agoReplace various spelling with FALLTHROUGH which is lint()able
Philippe Charnier [Sun, 25 Aug 2002 13:10:45 +0000 (13:10 +0000)]
Replace various spelling with FALLTHROUGH which is lint()able

22 years agoAdd LOGIN_SETMAC, which will indicate to the user context management code
Robert Watson [Fri, 16 Aug 2002 02:14:21 +0000 (02:14 +0000)]
Add LOGIN_SETMAC, which will indicate to the user context management code
that it should also set the user's default MAC label, if available and
permitted.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoFix conjugation of exists and add full stops to the messages I changed.
David Malone [Sun, 11 Aug 2002 20:31:16 +0000 (20:31 +0000)]
Fix conjugation of exists and add full stops to the messages I changed.

PR: 38481
Submitted by: Kevin Kinsey <kadmin@elisha.daleco.biz>
MFC after: 1 week

22 years agoWhitespace cleanup--it's not style(9), but it is consistent. Prep
Robert Watson [Sun, 11 Aug 2002 01:48:43 +0000 (01:48 +0000)]
Whitespace cleanup--it's not style(9), but it is consistent.  Prep
for MAC-related commits to the login infrastructure.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoThe .Nm utility
Philippe Charnier [Sun, 14 Jul 2002 14:47:15 +0000 (14:47 +0000)]
The .Nm utility

22 years agode-__P()
Alfred Perlstein [Thu, 11 Jul 2002 19:07:35 +0000 (19:07 +0000)]
de-__P()

22 years agoConsistently use FBSDID
David E. O'Brien [Sun, 30 Jun 2002 05:25:07 +0000 (05:25 +0000)]
Consistently use FBSDID

22 years agoLists follow a colon, not a semicolon.
Dima Dorfman [Sun, 30 Jun 2002 04:51:04 +0000 (04:51 +0000)]
Lists follow a colon, not a semicolon.

22 years ago`pw useradd' could be used with -w without -D option.
SADA Kenji [Wed, 26 Jun 2002 05:09:12 +0000 (05:09 +0000)]
`pw useradd' could be used with -w without -D option.

PR: docs/39770
Submitted by: sada
Approved by: dd

22 years agoPrint a long with %ld not %d. (We possibly should be using %j here, but
David Malone [Mon, 24 Jun 2002 11:33:17 +0000 (11:33 +0000)]
Print a long with %ld not %d. (We possibly should be using %j here, but
that can be fixed when the many other warnings here are being fixed.)

PR: 39741
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 1 week

22 years agoBe more clear in error messages.
Nick Hibma [Sun, 23 Jun 2002 19:23:46 +0000 (19:23 +0000)]
Be more clear in error messages.
Distinguish between a held lock and a failed lock op.

If rpc.lockd is not running on a diskless client this makes clearer
what the problem is.

22 years agoIf no old_pw was passed to pw_copy, compare just the name.
Dag-Erling Smørgrav [Wed, 8 May 2002 14:52:32 +0000 (14:52 +0000)]
If no old_pw was passed to pw_copy, compare just the name.

Sponsored by: DARPA, NAI Labs

22 years agoUse libutil and libypclnt for all passwd manipulation and NIS needs.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:54:29 +0000 (00:54 +0000)]
Use libutil and libypclnt for all passwd manipulation and NIS needs.

Sponsored by: DARPA, NAI Labs

22 years agoAdd passwd manipulation code based on parts of vipw and chpass.
Dag-Erling Smørgrav [Wed, 8 May 2002 00:50:07 +0000 (00:50 +0000)]
Add passwd manipulation code based on parts of vipw and chpass.

Sponsored by: DARPA, NAI Labs

22 years agoUse `The .Nm utility'
Philippe Charnier [Fri, 19 Apr 2002 23:44:58 +0000 (23:44 +0000)]
Use `The .Nm utility'

22 years agoMake mppath and masterpasswd pointers instead of arrays, and initialize
Dag-Erling Smørgrav [Wed, 17 Apr 2002 00:18:15 +0000 (00:18 +0000)]
Make mppath and masterpasswd pointers instead of arrays, and initialize
them to point at static strings that contain the default paths.  This
makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking
so long to fix it.)

Spotted by: Olivier Houchard <doginou@cognet.ci0.org>
Sponsored by: DARPA, NAI Labs

22 years agoRemove bogus reference to _use_yp.
Dag-Erling Smørgrav [Mon, 15 Apr 2002 15:50:59 +0000 (15:50 +0000)]
Remove bogus reference to _use_yp.

22 years agoConst poisoning.
Ruslan Ermilov [Mon, 8 Apr 2002 11:04:56 +0000 (11:04 +0000)]
Const poisoning.

22 years agoRename a couple of local variables to avoid warnings.
Dag-Erling Smørgrav [Sat, 6 Apr 2002 19:04:22 +0000 (19:04 +0000)]
Rename a couple of local variables to avoid warnings.

Sponsored by: DARPA, NAI Labs

22 years agoIn the words of the submitter:
Dima Dorfman [Fri, 5 Apr 2002 08:39:31 +0000 (08:39 +0000)]
In the words of the submitter:

 This patch explains -F for usershow and groupshow.  Because "groupmod
 ... -F" doesn't do anything, the patch also drops that from groupmod's
 command line args.

PR: 35955
Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>

22 years agoDocument the -7 option for usershow.
Dima Dorfman [Fri, 5 Apr 2002 08:31:17 +0000 (08:31 +0000)]
Document the -7 option for usershow.

PR: 36735
Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>

22 years agoFix vendor ID.
David Malone [Sat, 30 Mar 2002 14:32:07 +0000 (14:32 +0000)]
Fix vendor ID.
Make usage message match the man page. (Missing -o, -h doesn't depend on -d).

PR: 36470
Submitted by: Gary W. Swearingen <swear@blarg.net>
MFC after: 1 week

22 years agoMinor post warns stuff.
David Malone [Sat, 30 Mar 2002 13:44:45 +0000 (13:44 +0000)]
Minor post warns stuff.
1) Fix up vendor IDs for files I'm touching and put FBSDID in the right place.
2) Cast return value of snprintf to size_t rather than casting sizeof() to
   an int, 'cos we know snprintf returns a non-genative number.
3) Avoid 'char *blank = "";' by just strduping. This could be bad sometimes,
   but all these variables usually point at malloced memory so this makes
   them always point at malloced memory.

22 years agoFix warns, ANSIfy, use __FBSDID(), sort headers.
Mark Murray [Sun, 24 Mar 2002 10:21:22 +0000 (10:21 +0000)]
Fix warns, ANSIfy, use __FBSDID(), sort headers.

22 years agoFix a style(9) error. Put the vendor version control string back in.
Crist J. Clark [Sun, 24 Mar 2002 01:41:11 +0000 (01:41 +0000)]
Fix a style(9) error. Put the vendor version control string back in.
I nuked it when I added the $FreeBSD$ tag.

22 years agoFix the style of the SCM ID's.
David E. O'Brien [Fri, 22 Mar 2002 23:42:05 +0000 (23:42 +0000)]
Fix the style of the SCM ID's.
I believe have made all of libc .h's as consistent as possible.

22 years agoRemove multi-line __P() usage.
David E. O'Brien [Fri, 22 Mar 2002 09:22:15 +0000 (09:22 +0000)]
Remove multi-line __P() usage.

22 years agoremove __P
Warner Losh [Fri, 22 Mar 2002 01:22:50 +0000 (01:22 +0000)]
remove __P

22 years agoRemove __P() usage.
David E. O'Brien [Thu, 21 Mar 2002 23:54:04 +0000 (23:54 +0000)]
Remove __P() usage.

22 years agoRemove __P() usage.
David E. O'Brien [Thu, 21 Mar 2002 22:49:10 +0000 (22:49 +0000)]
Remove __P() usage.

22 years agoFix a bug that prevents "00" being used as a valid year. Why bother in
Crist J. Clark [Mon, 18 Mar 2002 09:49:18 +0000 (09:49 +0000)]
Fix a bug that prevents "00" being used as a valid year. Why bother in
2002? It is a bug. Might as well close the PR.

PR: misc/14511
Submitted by: Mike Pritchard <mpp@mpp.pro-ns.net>
MFC after: 3 days

22 years agoIt was possible for an unprivileged user to tie up the password
Crist J. Clark [Mon, 18 Mar 2002 02:22:53 +0000 (02:22 +0000)]
It was possible for an unprivileged user to tie up the password
information (no one else can vipw(8), chpass(1), or even passwd(1)),
either on purpose or by accident, until an administrator manually
intervened. Instead, do not lock the master.passwd file while a user
is editing his information. But once we go to write the new
information, check that the modified user's information has not
changed in the password database since we started. Abort the changes
if it has.

Add a $FreeBSD$ to pw_copy.h.

PR: i386/35816
Obtained from: NetBSD
MFC after: 1 week

22 years agoBring a comment in line with the code, and fix some spelling errors
Dima Dorfman [Sat, 9 Mar 2002 04:00:53 +0000 (04:00 +0000)]
Bring a comment in line with the code, and fix some spelling errors
while I'm here.

PR: 35394
Submitted by: andrew@ugh.net.au

22 years agoMerge a duplicate description of the -L option into the first one.
Giorgos Keramidas [Fri, 8 Mar 2002 00:36:36 +0000 (00:36 +0000)]
Merge a duplicate description of the -L option into the first one.

PR: docs/34782
MFC after: 1 week

22 years agoRemove a bogus cast.
Dag-Erling Smørgrav [Wed, 6 Mar 2002 15:24:51 +0000 (15:24 +0000)]
Remove a bogus cast.

22 years ago#include <stddef.h> for the definition of NULL instead of depending on
Bruce Evans [Mon, 25 Feb 2002 01:25:30 +0000 (01:25 +0000)]
#include <stddef.h> for the definition of NULL instead of depending on
namespace pollution 2 layers deep in <sys/stat.h>.

Sorted includes.

22 years agoFound a single point where rmuser(8) wasn't robust to strange
Yaroslav Tykhiy [Mon, 11 Feb 2002 15:26:20 +0000 (15:26 +0000)]
Found a single point where rmuser(8) wasn't robust to strange
characters in a username:  where it was inserted into a regexp.
Fix it by escaping metacharacters in the name with \Q-\E.

22 years agoANSIfy and remove some dead code.
Dag-Erling Smørgrav [Wed, 6 Feb 2002 15:26:07 +0000 (15:26 +0000)]
ANSIfy and remove some dead code.

Sponsored by: DARPA, NAI Labs