]> git.cameronkatri.com Git - pw-darwin.git/log
pw-darwin.git
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

22 years agoApply the following mechanical transformations in preparation for
Dag-Erling Smørgrav [Wed, 6 Feb 2002 13:30:31 +0000 (13:30 +0000)]
Apply the following mechanical transformations in preparation for
ansification and constification:

    s{\s+__P\((\(.*?\))\)}{$1}g;
    s{\(\s+}{\(}g;
    s{\s+\)}{\)}g;
    s{\s+,}{,}g;
    s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
    s{return ([^\(].*?);}{return ($1);}g;
    s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
    s{\s+$}{\n};g

Also add $FreeBSD$ where needed.

MFC after: 1 week

22 years agoThe clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacks
Alfred Perlstein [Tue, 5 Feb 2002 19:26:04 +0000 (19:26 +0000)]
The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacks
were removed and replaced them with clnt_tp_create, now the af_local
support is fixed.

I also removed the hack how rpcinfo contacted rpcbind, now we can
relay on clnt_tp_create create the client-handle for us.  Only
rpcbind itself needs a hardcoded socket-path.

Submitted by: mbr

Also add $FreeBSD

22 years agoANSIfy and constify.
Dag-Erling Smørgrav [Tue, 5 Feb 2002 06:49:11 +0000 (06:49 +0000)]
ANSIfy and constify.

Sponsored by: DARPA, NAI Labs

22 years agoFix SCM ID's.
David E. O'Brien [Fri, 1 Feb 2002 00:57:29 +0000 (00:57 +0000)]
Fix SCM ID's.

22 years agoKeep similar things together: Check for too long usernames
Yaroslav Tykhiy [Mon, 28 Jan 2002 17:59:09 +0000 (17:59 +0000)]
Keep similar things together: Check for too long usernames
inside the function that verifies username validity.

22 years agoDisallow adding duplicate roots, toors, or other users w/uid 0.
Yaroslav Tykhiy [Mon, 28 Jan 2002 17:30:12 +0000 (17:30 +0000)]
Disallow adding duplicate roots, toors, or other users w/uid 0.
Previously, a truth check instead if defined() check erroneously
allowed that.

PR: bin/8745

22 years agoImplement a flexible way of letting some unusual characters
Yaroslav Tykhiy [Mon, 28 Jan 2002 17:03:13 +0000 (17:03 +0000)]
Implement a flexible way of letting some unusual characters
into usernames: Make the regular expression to check usernames
against configurable.

PR: bin/22860 bin/31049
Reviewed by: sheldonh

22 years agoRemove the newly added -force option because it made adduser(8)
Yaroslav Tykhiy [Mon, 28 Jan 2002 16:37:35 +0000 (16:37 +0000)]
Remove the newly added -force option because it made adduser(8)
less robust to possible errors of the user/admin while adduser(8)
had been intended to minimize their possibility.
An alternative way of introducing strange symbols into usernames
to be committed really soon.

23 years agoAdd `-h' to the chown command so that symbolic links copied from
Ian Dowse [Sun, 20 Jan 2002 17:05:07 +0000 (17:05 +0000)]
Add `-h' to the chown command so that symbolic links copied from
the skeleton directory are chown'd to the new user.

PR: bin/10601
Submitted by: Adrian Filipi-Martin <adrian2ubergeeks.com@gosub.cstone.net>
MFC after: 1 month

23 years agoyp(4) -> yp(8).
Ruslan Ermilov [Mon, 14 Jan 2002 16:59:03 +0000 (16:59 +0000)]
yp(4) -> yp(8).

PR: docs/30797

23 years agoRemove myself as maintainer, I don't have free time for adduser anymore.
Wolfram Schneider [Sun, 13 Jan 2002 11:54:48 +0000 (11:54 +0000)]
Remove myself as maintainer, I don't have free time for adduser anymore.

23 years agoOops, missed one point where $pwd_mkdb had been used.
Yaroslav Tykhiy [Fri, 4 Jan 2002 21:28:32 +0000 (21:28 +0000)]
Oops, missed one point where $pwd_mkdb had been used.
Now it should be @pwd_mkdb since we moved to Perl's
safe system() not using /bin/sh.

23 years agoDocument a new option: -force.
Yaroslav Tykhiy [Wed, 2 Jan 2002 19:01:53 +0000 (19:01 +0000)]
Document a new option: -force.

23 years agoAllow weird characters in usernames if an admin persists on that:
Yaroslav Tykhiy [Wed, 2 Jan 2002 18:54:40 +0000 (18:54 +0000)]
Allow weird characters in usernames if an admin persists on that:
a) Convert all the remaining older Perl system() calls to the new,
   more secure LIST format so they are robust to whitespace and
   shell metacharacters in their arguments.
b) Add a new option: -force, which allows adding usernames containing
   characters that are otherwise illegal.

PR: bin/22860 bin/31049

23 years agoBe consistent in what restriction is imposed on a username
Yaroslav Tykhiy [Wed, 2 Jan 2002 16:19:14 +0000 (16:19 +0000)]
Be consistent in what restriction is imposed on a username
in the code and what the warning message reads.

23 years agoForbid adding duplicate users with the name of "0".
Yaroslav Tykhiy [Wed, 2 Jan 2002 15:49:49 +0000 (15:49 +0000)]
Forbid adding duplicate users with the name of "0".
Previously, it was possible due to 0 and "0" being
equivalent in Perl.

23 years agoParse atq(1) output correctly under various (but not all perhaps)
Yaroslav Tykhiy [Wed, 2 Jan 2002 15:35:33 +0000 (15:35 +0000)]
Parse atq(1) output correctly under various (but not all perhaps)
locale settings: allow any date and time separator characters.

23 years agoIn remove_at_jobs():
Yaroslav Tykhiy [Wed, 2 Jan 2002 15:24:10 +0000 (15:24 +0000)]
In remove_at_jobs():
Don't print "Removing at jobs" if there are no jobs to remove.
Add a whitespace before "done." so the output looks better.

23 years agoUse correct mode for temporary file.
Jacques Vidrine [Thu, 20 Dec 2001 16:03:04 +0000 (16:03 +0000)]
Use correct mode for temporary file.

Reported by: ryan beasley <ryanb@goddamnbastard.org>

23 years agoCorrect some egregious style bugs.
Dag-Erling Smørgrav [Tue, 4 Dec 2001 12:32:35 +0000 (12:32 +0000)]
Correct some egregious style bugs.

23 years agoAdd a missing error check. This fixes a bug that would cause pwd_mkdb to
Dag-Erling Smørgrav [Tue, 4 Dec 2001 12:31:02 +0000 (12:31 +0000)]
Add a missing error check.  This fixes a bug that would cause pwd_mkdb to
dump core if invoked with an input file that looks like a password file
but isn't (e.g. /etc/group).

PR: 32378
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
MFC after: 1 week

23 years agoChange rmskey() to rmopie() - we don't have skey anymore
Andrey A. Chernov [Fri, 19 Oct 2001 10:45:14 +0000 (10:45 +0000)]
Change rmskey() to rmopie() - we don't have skey anymore

23 years agoAdd __FBSDID()s to libutil
Matthew Dillon [Sun, 30 Sep 2001 22:35:07 +0000 (22:35 +0000)]
Add __FBSDID()s to libutil

23 years ago1) Back out ~/.login_conf disable
Andrey A. Chernov [Tue, 25 Sep 2001 11:07:26 +0000 (11:07 +0000)]
1) Back out ~/.login_conf disable
2) Pick only "me" class from ~/.login_conf as documented

23 years agoDisable per-user .login_conf support due to incorrect merging of local
Robert Watson [Sun, 16 Sep 2001 16:48:40 +0000 (16:48 +0000)]
Disable per-user .login_conf support due to incorrect merging of local
and globaly settings.  An alternative implementation will be developed.

Reported by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl>

23 years agoo Add a comment noting that the early setting of privileges for the purpose
Robert Watson [Sat, 15 Sep 2001 16:12:56 +0000 (16:12 +0000)]
o Add a comment noting that the early setting of privileges for the purpose
  of NFS home directory and root directory processing fails to include
  additional groups.  This doesn't impact the final credential, but does
  mean that users may be denied login even when additional groups might
  allow it.

23 years agoSet BINOWN=root explicitly for setuid root binaries.
Ruslan Ermilov [Thu, 13 Sep 2001 06:48:18 +0000 (06:48 +0000)]
Set BINOWN=root explicitly for setuid root binaries.

This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.

23 years agoPrint the correct filename if we fail to open $etc_passwd.
Dima Dorfman [Thu, 6 Sep 2001 12:21:21 +0000 (12:21 +0000)]
Print the correct filename if we fail to open $etc_passwd.

Submitted by: Brian Poole <raj@cerias.purdue.edu>

23 years agoUse CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently adds
Dima Dorfman [Wed, 5 Sep 2001 20:10:59 +0000 (20:10 +0000)]
Use CFLAGS, not COPTS, in the Makefile.  bsd.prog.mk conveniently adds
COPTS towards the end of final CFLAGS so that it can be used to
override Makefile and other defaults.  Using it in Makefiles risks
having options set using it clobbered when somebody uses it on the
command line.

Approved by: bde

23 years agoFor new users, create the home directory before sending the welcome
Dima Dorfman [Mon, 3 Sep 2001 14:12:42 +0000 (14:12 +0000)]
For new users, create the home directory before sending the welcome
mail, if configured to do so.  Some sites have setups where the user's
mail is delivered to their home directory, so sending mail before is
exists didn't work.

PR: 29892

23 years agoUnbreak group operations by reverting previous delta which removed the
Dima Dorfman [Thu, 30 Aug 2001 06:32:17 +0000 (06:32 +0000)]
Unbreak group operations by reverting previous delta which removed the
assignment of `l' in `gr_update' to the return value of snprintf.  It
claimed to have fixed the case where snprintf returned -1--in fact, it
broke the entire routine.  Not setting `l' here causes fileupdate() to
invariably fail with EINVAL because it does its own check to assert
that the parameter isn't -1.

23 years agoProperly initialize the random number generator in pw_getpass().
Joerg Wunsch [Tue, 21 Aug 2001 13:33:20 +0000 (13:33 +0000)]
Properly initialize the random number generator in pw_getpass().
Right now, the automatically generated passwords have been rather
predictable. :-(

MFC after: 1 day

23 years agoFix a typo in a variable name that made pw(8) coredump when using
Joerg Wunsch [Tue, 21 Aug 2001 10:29:01 +0000 (10:29 +0000)]
Fix a typo in a variable name that made pw(8) coredump when using
USE_MD5RAND.

MFC after: 2 days

23 years agoHandle snprintf() returning < 0 (not just -1)
Brian Somers [Mon, 20 Aug 2001 15:09:34 +0000 (15:09 +0000)]
Handle snprintf() returning < 0 (not just -1)

MFC after: 2 weeks

23 years agoHandle snprintf() returning -1.
Brian Somers [Mon, 20 Aug 2001 13:24:39 +0000 (13:24 +0000)]
Handle snprintf() returning -1.

MFC after: 2 weeks

23 years agoPass the username we just made to pwd_mkdb so that the latter doesn't
Dima Dorfman [Mon, 20 Aug 2001 01:20:05 +0000 (01:20 +0000)]
Pass the username we just made to pwd_mkdb so that the latter doesn't
have to regenerate the entire database.

PR: 25798
Submitted by: Domas Mituzas <domas.mituzas@delfi.lt>

23 years agomdoc(7) police: s/BSD/.Bx/ where appropriate.
Ruslan Ermilov [Tue, 14 Aug 2001 10:01:54 +0000 (10:01 +0000)]
mdoc(7) police: s/BSD/.Bx/ where appropriate.

23 years agocan not -> cannot
Sheldon Hearn [Wed, 8 Aug 2001 18:32:06 +0000 (18:32 +0000)]
can not -> cannot

23 years agoAdd "use Fcntl" to resolve O_RDWR|O_CREAT|O_EXCL macros used in
Guy Helmer [Wed, 1 Aug 2001 16:32:36 +0000 (16:32 +0000)]
Add "use Fcntl" to resolve O_RDWR|O_CREAT|O_EXCL macros used in
new sysopen call.

PR: 29366 (in part)

23 years agoInstall the new password file with pwd_mkdb, not the old one.
Guy Helmer [Wed, 1 Aug 2001 15:27:39 +0000 (15:27 +0000)]
Install the new password file with pwd_mkdb, not the old one.

PR: 29366 (in part)

23 years agoThe variable giving the name of the temporary password file was
Guy Helmer [Mon, 30 Jul 2001 16:23:56 +0000 (16:23 +0000)]
The variable giving the name of the temporary password file was
inconsistently named "ptmp" and "etc_ptmp".  This commit changes
it to "passwd_tmp" for consistency and to match OpenBSD's name
for the variable.

Consulted with: jedgar

23 years agoPrevent chpass(1) from writing -1 in the UID or GID fields
Mike Barcroft [Thu, 26 Jul 2001 23:27:10 +0000 (23:27 +0000)]
Prevent chpass(1) from writing -1 in the UID or GID fields
in the password file by properly casting integers.

PR: 27757
Reviewed by: des
Approved by: des
MFC after: 4 days

23 years agoUse a safer method of creating the temporary password file.
Chris D. Faulhaber [Wed, 25 Jul 2001 11:55:33 +0000 (11:55 +0000)]
Use a safer method of creating the temporary password file.

Submitted by: dynamo@harvard.net
Obtained from: OpenBSD
MFC after: 3 days

23 years agoFix removal of at jobs.
Guy Helmer [Mon, 23 Jul 2001 18:25:45 +0000 (18:25 +0000)]
Fix removal of at jobs.

PR: bin/23052
Submitted by: Mike Sellenschuetter <mike.sellenschuetter@bankofamerica.com>
MFC after: 1 week

23 years agoremove emalloc,ecalloc,erealloc,estrdup
Assar Westerlund [Mon, 23 Jul 2001 12:42:07 +0000 (12:42 +0000)]
remove emalloc,ecalloc,erealloc,estrdup

23 years agoadd ecalloc, emalloc, erealloc, estrdup - versions of the e-less
Assar Westerlund [Sun, 22 Jul 2001 22:26:37 +0000 (22:26 +0000)]
add ecalloc, emalloc, erealloc, estrdup - versions of the e-less
functions that exit instead of failing

23 years agoPerform a major cleanup of the usr.sbin Makefiles.
David E. O'Brien [Fri, 20 Jul 2001 06:20:32 +0000 (06:20 +0000)]
Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.

23 years agoRemove GCC'isms in CFLAGS.
David E. O'Brien [Fri, 20 Jul 2001 04:23:13 +0000 (04:23 +0000)]
Remove GCC'isms in CFLAGS.

23 years agoGenerate a bigger salt. This is necessary for blowfish to work
Dima Dorfman [Thu, 19 Jul 2001 12:00:04 +0000 (12:00 +0000)]
Generate a bigger salt.  This is necessary for blowfish to work
properly, and doesn't hurt the other algorithms.

PR: 28991
Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>

23 years agoRemove whitespace at EOL.
Dima Dorfman [Sun, 15 Jul 2001 08:06:20 +0000 (08:06 +0000)]
Remove whitespace at EOL.

23 years agomdoc(7) police: removed HISTORY info from the .Os call.
Ruslan Ermilov [Tue, 10 Jul 2001 15:12:08 +0000 (15:12 +0000)]
mdoc(7) police: removed HISTORY info from the .Os call.

23 years agomdoc(7) police: remove extraneous .Pp before and/or after .Sh.
Dima Dorfman [Mon, 9 Jul 2001 09:54:33 +0000 (09:54 +0000)]
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.

23 years agoFix the type of the NULL arg to execl()
Brian Somers [Mon, 9 Jul 2001 09:24:06 +0000 (09:24 +0000)]
Fix the type of the NULL arg to execl()

Idea from: Theo de Raadt <deraadt@openbsd.org>

23 years agoDon't override the default BINMODE.
Ruslan Ermilov [Thu, 5 Jul 2001 15:25:05 +0000 (15:25 +0000)]
Don't override the default BINMODE.

Submitted by: bde

23 years agoFix a harmless format string bogon and mark a function as __printflike().
Kris Kennaway [Thu, 5 Jul 2001 08:01:15 +0000 (08:01 +0000)]
Fix a harmless format string bogon and mark a function as __printflike().
There is still one instance of non-constant format string use inside that
function, but it's hard to fix.

MFC after: 1 week

23 years agoInclude missing header files which define functions for which gcc has
Dima Dorfman [Sun, 24 Jun 2001 20:25:23 +0000 (20:25 +0000)]
Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).

23 years agoCND has been unused for two years, and RND has been unused for five
Dima Dorfman [Tue, 19 Jun 2001 00:39:29 +0000 (00:39 +0000)]
CND has been unused for two years, and RND has been unused for five
years; remove them from CFLAGS.

PR: 23712
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>