]> git.cameronkatri.com Git - pw-darwin.git/log
pw-darwin.git
24 years agoSecond and hopefully final fix to .db sync when renaming a user; we must run
David Nugent [Sun, 18 Jun 2000 02:16:07 +0000 (02:16 +0000)]
Second and hopefully final fix to .db sync when renaming a user; we must run
a full reindex in this case to remove the old record. #ifdef -u capability
since this is available on FreeBSD only.
PR: bin/16418
Problem pointed out by: Masachika ISHIZUKA <ishizuka@ish.org>

24 years agoFix db syncronization when username is changed with -l under usermod.
David Nugent [Tue, 6 Jun 2000 07:33:00 +0000 (07:33 +0000)]
Fix db syncronization when username is changed with -l under usermod.
pw(8) was calling pwd_mkdb -u oldusername instead of newusername, so
the update appears to have failed until the next full pwd_mkdb
syncronization.

PR: bin/16418

24 years agoBack out the previous change to the queue(3) interface.
Jake Burkholder [Fri, 26 May 2000 02:09:24 +0000 (02:09 +0000)]
Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by: msmith and others

24 years agoChange the way that the queue(3) structures are declared; don't assume that
Jake Burkholder [Tue, 23 May 2000 20:41:01 +0000 (20:41 +0000)]
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by: phk
Reviewed by: phk
Approved by: mdodd

24 years agoFix a memory leak with lc->lc_cap in login_close().
Tim Vanderhoek [Sun, 21 May 2000 02:50:36 +0000 (02:50 +0000)]
Fix a memory leak with lc->lc_cap in login_close().

PR: bin/17084

24 years agoUse an MD5 checksum to test for file changes; the previous method
Sheldon Hearn [Wed, 12 Apr 2000 08:49:14 +0000 (08:49 +0000)]
Use an MD5 checksum to test for file changes; the previous method
of using file mtimes could result in chpasss(1) erroneously
detecting that no changes were made for non-interactive edits.

PR: 4238
Reported by: Jens Schweikhardt <schweikh@noc.dfn.de>
Submitted by: Daniel Hagan <dhagan@cs.vt.edu>

24 years agoUn-botch my botched reduction in permitted characters in the permitted
Mark Newton [Tue, 14 Mar 2000 14:27:34 +0000 (14:27 +0000)]
Un-botch my botched reduction in permitted characters in the permitted
username check which resulted from my attempt to expand them.

PR: bin/17372
Reviewed by: sheldonh

24 years agoFix the case where username validity test would incorrectly fail if
Mark Newton [Tue, 14 Mar 2000 14:19:17 +0000 (14:19 +0000)]
Fix the case where username validity test would incorrectly fail if
the specified username contained uppercase alphabetics.

PR: bin/17372

24 years agoFix various unsigned vs signed errors that caused problems with uids
Paul Richards [Thu, 9 Mar 2000 18:11:16 +0000 (18:11 +0000)]
Fix various unsigned vs signed errors that caused problems with uids
and gids bigger than 16 bits. Added checks for uids and gids that are
bigger than 32 bits.

Approved by: jkh (partly, this fix is bigger than I first intended)

24 years agoRemove more single-space hard sentence breaks.
Sheldon Hearn [Mon, 6 Mar 2000 09:45:37 +0000 (09:45 +0000)]
Remove more single-space hard sentence breaks.

24 years agoRemove more single-space hard sentence breaks.
Sheldon Hearn [Thu, 2 Mar 2000 14:54:02 +0000 (14:54 +0000)]
Remove more single-space hard sentence breaks.

24 years agoRemove single-space hard sentence breaks. These degrade the quality
Sheldon Hearn [Wed, 1 Mar 2000 14:09:25 +0000 (14:09 +0000)]
Remove single-space hard sentence breaks.  These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.

24 years agoRemove single-space hard sentence breaks. These degrade the quality
Sheldon Hearn [Wed, 1 Mar 2000 12:20:22 +0000 (12:20 +0000)]
Remove single-space hard sentence breaks.  These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.

24 years agoUse a more conventional copyright message.
Peter Wemm [Wed, 26 Jan 2000 07:17:00 +0000 (07:17 +0000)]
Use a more conventional copyright message.

24 years agoseveral tcp apps IPv6 update
Yoshinobu Inoue [Tue, 25 Jan 2000 14:52:10 +0000 (14:52 +0000)]
several tcp apps IPv6 update
 -inetd
 -rshd
 -rlogind
 -telnetd
 -rsh
 -rlogin

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project

25 years agoPortability fixes for other bsd4.4 derivatives.
David Nugent [Sat, 15 Jan 2000 00:20:22 +0000 (00:20 +0000)]
Portability fixes for other bsd4.4 derivatives.

25 years agoConnect fparseln(3) for mailwrapper(8)
Peter Wemm [Wed, 29 Dec 1999 17:50:34 +0000 (17:50 +0000)]
Connect fparseln(3) for mailwrapper(8)

25 years agoExtra sanity checks in information from file edited by user. This
Warner Losh [Tue, 21 Dec 1999 19:30:09 +0000 (19:30 +0000)]
Extra sanity checks in information from file edited by user.  This
precludes using chfn, et al, to generate a divot in /etc.

Submitted by: Lukasz Luzar
Forgotten about for months by: imp

25 years agoRevert the libcrypt/libmd stuff back to how it was. This should not have
Peter Wemm [Sat, 18 Dec 1999 13:55:17 +0000 (13:55 +0000)]
Revert the libcrypt/libmd stuff back to how it was.  This should not have
happened as it was working around problems elsewhere (ie: binutils/ld
not doing the right thing according to the ELF design).  libcrypt has
been adjusted to not need the runtime -lmd.  It's still not quite right
(ld is supposed to work damnit) but at least it doesn't impact all the
users of libcrypt in Marcel's cross-build model.

25 years agoDocument -e flag.
Alexey Zelkin [Fri, 17 Dec 1999 14:43:33 +0000 (14:43 +0000)]
Document -e flag.

PR: docs/14936
Submitted by: Stephen J. Roznowski <sjr@home.com>

25 years agoAdd libmd (or move it after libcrypt). We don't want the linker to be
Marcel Moolenaar [Thu, 16 Dec 1999 10:55:45 +0000 (10:55 +0000)]
Add libmd (or move it after libcrypt). We don't want the linker to be
smart because it will definitely get it wrong. This popped up during
cross-linking.

25 years agoReplace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS in
Sheldon Hearn [Thu, 2 Dec 1999 16:39:15 +0000 (16:39 +0000)]
Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS in
the environment.  This allows big ID warnings to be suppressed for
vipw and chpass as well.

Since the environment variable test is only performed for callers
of pw_scan() that do not set pw_big_ids_warning, the test can still
be overriden.  Currently, chpass and pwd_mkdb are the only users
of pw_scan() and neither of them overrides the environment variable
test.

25 years agoAllow empty UIDs if we are processing NIS records. I am not entirely
Eivind Eklund [Mon, 22 Nov 1999 12:42:38 +0000 (12:42 +0000)]
Allow empty UIDs if we are processing NIS records.  I am not entirely
happy with how this end up and will re-visit the entire empty field
problem, but this patch solves the NIS problem for now.

Submitted by: Dan Nelson <dan@emsphone.com>
PR: 14865,14984

25 years agomdoc(7)'fy
Alexey Zelkin [Thu, 18 Nov 1999 16:04:53 +0000 (16:04 +0000)]
mdoc(7)'fy

Mostly submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>

25 years agoAdd to pwd_mkdb a -q option to silence warnings about large IDs. Add a
Sheldon Hearn [Mon, 15 Nov 1999 16:45:37 +0000 (16:45 +0000)]
Add to pwd_mkdb a -q option to silence warnings about large IDs.  Add a
suitably ominous warning in the manual page.

The diff applied is not the one provided in the attributed PR.

PR: 13344
Reviewed by: bde

25 years agoFlag empty UID entries as errors (to stop typos from turning into
Eivind Eklund [Sat, 6 Nov 1999 20:21:04 +0000 (20:21 +0000)]
Flag empty UID entries as errors (to stop typos from turning into
alternate root accounts).

25 years agomdoc(7)'fy
Alexey Zelkin [Sat, 30 Oct 1999 15:12:25 +0000 (15:12 +0000)]
mdoc(7)'fy

25 years agoDon't try updating the passwd file if no data has changed. This allows things
David Nugent [Tue, 26 Oct 1999 15:07:20 +0000 (15:07 +0000)]
Don't try updating the passwd file if no data has changed. This allows things
like "pw usermod <name> -m" to work for non-local NIS users; since no attempt
is made to update the password entry, the home directory will be created and
populated as expected without error.

25 years agoAdd new functionality "lock" and "unlock" to provide a simple password
David Nugent [Tue, 26 Oct 1999 08:34:09 +0000 (08:34 +0000)]
Add new functionality "lock" and "unlock" to provide a simple password
locking mechanism for users. This works by prepending the string
"*LOCKED*" to the password field in master.passwd to prevent successful
decoding.

25 years agoMissed statement in password update relating to the previous change
David Nugent [Tue, 26 Oct 1999 08:30:20 +0000 (08:30 +0000)]
Missed statement in password update relating to the previous change
to fileupdate() which prevented pwd_mkdb(1) from being run.

25 years agoClean up error handling in fileupdate(), which now returns 0 on success
David Nugent [Tue, 26 Oct 1999 04:27:14 +0000 (04:27 +0000)]
Clean up error handling in fileupdate(), which now returns 0 on success
instead of a boolean. This replicated through he front-end sub-functions
relating to add, delete, modify entries in passwd & group files
Errno is now preserved so output of errc()/warnc() will be less obfuscated
by subsequent errors when reporting the problem.

Add more intelligent error handling when attempting to modify/delete NIS
entries with no corresponding local database entry.

[MFC to stable in a couple of weeks to keep both in sync]

25 years agofix a serious bug where, on alpha, due to a an int/long type mismatch,
Andrew Gallatin [Wed, 20 Oct 1999 15:20:00 +0000 (15:20 +0000)]
fix a serious bug where, on alpha, due to a an int/long type mismatch,
the uid arg to use_yp() was getting clobbered by the call to my_yp_match().
This led to a problem where a NIS user could edit root's passwd information.

25 years agoUnifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional and
Peter Wemm [Mon, 6 Sep 1999 17:30:03 +0000 (17:30 +0000)]
Unifdef -DPASSWD_IGNORE_COMMENTS.  This wasn't really optional and
we have enough pseudo-options already.

25 years agoBack out previous commit. I mistook passing commentary from bde for
Sheldon Hearn [Tue, 31 Aug 1999 13:11:39 +0000 (13:11 +0000)]
Back out previous commit. I mistook passing commentary from bde for
review.

Requested by: bde

25 years agoOnly do a full pwd_mkdb for deletions; other operations may use the -u
Sheldon Hearn [Mon, 30 Aug 1999 10:35:38 +0000 (10:35 +0000)]
Only do a full pwd_mkdb for deletions; other operations may use the -u
option as an optimization.

PR: 13346
Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>

25 years agoOnly issue a warning for the first occurrence of a UID > USHRT_MAX and
Sheldon Hearn [Mon, 30 Aug 1999 09:55:42 +0000 (09:55 +0000)]
Only issue a warning for the first occurrence of a UID > USHRT_MAX and
the first occurrence of a GID > USHRT_MAX.

PR: 13344
Reviewed by: bde

25 years ago$Id$ -> $FreeBSD$
Peter Wemm [Sat, 28 Aug 1999 01:35:59 +0000 (01:35 +0000)]
$Id$ -> $FreeBSD$

25 years ago$Id$ -> $FreeBSD$
Peter Wemm [Sat, 28 Aug 1999 01:08:13 +0000 (01:08 +0000)]
$Id$ -> $FreeBSD$

25 years ago$Id$ -> $FreeBSD$
Peter Wemm [Sat, 28 Aug 1999 00:22:10 +0000 (00:22 +0000)]
$Id$ -> $FreeBSD$

25 years agoFix a bunch of broken cross-references
Chris Costello [Wed, 18 Aug 1999 05:55:22 +0000 (05:55 +0000)]
Fix a bunch of broken cross-references

25 years agoAllow comments and blank lines as advertised in passwd(5).
Sheldon Hearn [Thu, 29 Jul 1999 16:30:35 +0000 (16:30 +0000)]
Allow comments and blank lines as advertised in passwd(5).

PR: 12828
Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp>

25 years agoRemove some more warnings.
David Nugent [Wed, 28 Jul 1999 12:49:34 +0000 (12:49 +0000)]
Remove some more warnings.

25 years agoRemove references to the non-existent addgroup(8) and rmgroup(8)
Nik Clayton [Tue, 27 Jul 1999 18:22:18 +0000 (18:22 +0000)]
Remove references to the non-existent addgroup(8) and rmgroup(8)
commands.

PR:             docs/12659
Submitted by:   Mark Diekhans <markd@Grizzly.COM>

25 years agoGrammar and spelling fixes
Kris Kennaway [Wed, 30 Jun 1999 12:49:56 +0000 (12:49 +0000)]
Grammar and spelling fixes

Obtained from: OpenBSD

25 years agoMove call to umask(0) back into pw_util(), because the latter
Pierre Beyssac [Tue, 29 Jun 1999 01:04:10 +0000 (01:04 +0000)]
Move call to umask(0) back into pw_util(), because the latter
function is also used by chpass(1) and passwd(1).

25 years agoForce umask to 077 (instead of 000) during the edit phase, to get
Pierre Beyssac [Sat, 26 Jun 1999 12:15:39 +0000 (12:15 +0000)]
Force umask to 077 (instead of 000) during the edit phase, to get
secure permissions in case the user attempts to save something to
a file of his own.

Move umask stuff out of pw_init() into main() for better visibility
of overall umask tweaking logic.

PR: misc/11797

25 years agoAdd -d option to vipw(8) to allow selection of an alternative directory
Sheldon Hearn [Sat, 26 Jun 1999 07:16:42 +0000 (07:16 +0000)]
Add -d option to vipw(8) to allow selection of an alternative directory
for the password files.

PR: 2703
Submitted by: jmg

25 years agoMore egcs warning fixes:
Warner Losh [Sun, 25 Apr 1999 22:37:58 +0000 (22:37 +0000)]
More egcs warning fixes:
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int
o #ifdef 0 -> #if 0

Reviewed by: obrien and chuckr

25 years agooops, add pwd!=NULL check to previous fix
Andrey A. Chernov [Sat, 24 Apr 1999 17:17:42 +0000 (17:17 +0000)]
oops, add pwd!=NULL check to previous fix

25 years agoSwitch to user UID/GID before checking/reading its ~/.login_conf
Andrey A. Chernov [Sat, 24 Apr 1999 17:01:58 +0000 (17:01 +0000)]
Switch to user UID/GID before checking/reading its ~/.login_conf
- some NFSes have root read access disabled

25 years agoAdd realhostname() - a function to correctly lookup
Brian Somers [Tue, 6 Apr 1999 23:02:35 +0000 (23:02 +0000)]
Add realhostname() - a function to correctly lookup
a name by address and ensure that the name resolves
back to the original address.

25 years agoFix date parsing to allow '0' (none) date value.
David Nugent [Mon, 15 Mar 1999 08:16:01 +0000 (08:16 +0000)]
Fix date parsing to allow '0' (none) date value.

25 years agoAdd the ability to print user records in unix version 7 (old) format.
David Nugent [Tue, 2 Mar 1999 00:53:33 +0000 (00:53 +0000)]
Add the ability to print user records in unix version 7 (old) format.

25 years agoClose PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().
Bill Paul [Mon, 1 Mar 1999 16:11:13 +0000 (16:11 +0000)]
Close PR #10264. Don't bail directly out of passwd/chpass in my_yp_match().
Instead, treat the inability to retrieve a record from the server as a
match failure and let things take its course.

Part of the problem here is that NIS _is_ turned on, however the master
server is actually not an NIS server: it's an NIS+ server. And the client
is bound to an NIS+ replica server that's running in YP compat mode.
The code which tries to figure out of the user is local or NIS gets
confused by this.

25 years agoFix minor nit with command line parsing for pw -V DIR action.
David Nugent [Tue, 23 Feb 1999 11:01:50 +0000 (11:01 +0000)]
Fix minor nit with command line parsing for pw -V DIR action.

25 years agoFix tpyo (sic) and missing 'else' (bad cut n' paste).
David Nugent [Tue, 23 Feb 1999 10:35:47 +0000 (10:35 +0000)]
Fix tpyo (sic) and missing 'else' (bad cut n' paste).

25 years ago1) Do not blindly ignore file update errors which may occur due to concurrent
David Nugent [Tue, 23 Feb 1999 07:15:11 +0000 (07:15 +0000)]
1) Do not blindly ignore file update errors which may occur due to concurrent
   updating
2) Add -V <etcdir>, which allows maintaining user/group database in alternate
   locations other than /etc.

25 years agoChange the prompt for the office location field from "Location:"
Guy Helmer [Tue, 23 Feb 1999 02:41:26 +0000 (02:41 +0000)]
Change the prompt for the office location field from "Location:"
to "Office Location:" to disambiguate what is expected.  Add a note
to the man page to indicate that the office location and office phone
fields are concatenated and printed with the heading "Office:" by
finger(1).  Swap the order of the home and office phone fields in the
man page to match the order of the fields in the editor.

If any programs interact with chpass(1) and expect "Location:" instead
of "Office Location:" as the prompt, either this change will have to be
reverted or the other programs will have to be changed.

PR: docs/7533

25 years agoIgnore errors from chflags. This makes it possible to make installworld
Dag-Erling Smørgrav [Sun, 14 Feb 1999 13:56:15 +0000 (13:56 +0000)]
Ignore errors from chflags. This makes it possible to make installworld
with DESTDIR set to an NFS-mounted file system.

25 years agoAdded myself as maintainer.
Wolfram Schneider [Tue, 9 Feb 1999 17:23:03 +0000 (17:23 +0000)]
Added myself as maintainer.

25 years agoDon't assume a_name is a number just because the first character
Dag-Erling Smørgrav [Mon, 8 Feb 1999 21:26:44 +0000 (21:26 +0000)]
Don't assume a_name is a number just because the first character
is a digit.

PR: bin/9484
Submitted by: Matthew D. Fuller <fullermd@futuresouth.com>

26 years agoAllow two digit years 1969-2068
Daniel O'Callaghan [Mon, 18 Jan 1999 22:15:09 +0000 (22:15 +0000)]
Allow two digit years 1969-2068

26 years agoPrint yyyy/mm/dd in /var/log/adduser, instead of yy/mm/dd
Daniel O'Callaghan [Fri, 15 Jan 1999 10:26:59 +0000 (10:26 +0000)]
Print yyyy/mm/dd in /var/log/adduser, instead of yy/mm/dd
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>

26 years agoRemove bogus file locking in main().
David Nugent [Fri, 8 Jan 1999 10:52:38 +0000 (10:52 +0000)]
Remove bogus file locking in main().

26 years ago-Clarification of last commit-
Bill Fumerola [Mon, 4 Jan 1999 14:07:53 +0000 (14:07 +0000)]
-Clarification of last commit-
The char that the random letters and numbers are being pulled from is
ended with a '\0'. Using sizeof() includes this '\0' in the 'pool' of
possible characters. This patch decrements by one the size so we don't
accidently end the new password prematurly.

26 years agoLet's make sure we're at the end of the password string before we apply a \0
Bill Fumerola [Sat, 2 Jan 1999 04:37:46 +0000 (04:37 +0000)]
Let's make sure we're at the end of the password string before we apply a \0
and terminate it. This patch ensures passwords will be the correct length of 8,
which is what is implied in the source (but not reflected in the man page).

PR: bin/7817
Reviewed by: Alfred Perlstein <bright@hotjobs.com>
Submitted by: Hiroshi Nishikawa <nis@pluto.dti.ne.jp>

26 years agoFix the spelling of `FreeBSD'.
Joerg Wunsch [Sun, 27 Dec 1998 12:01:07 +0000 (12:01 +0000)]
Fix the spelling of `FreeBSD'.

Submitted by: Peter Philipp <pjp@bsd-daemon.net>

26 years agoDeclare setproctitle() as printf0-like.
Bruce Evans [Wed, 16 Dec 1998 17:52:15 +0000 (17:52 +0000)]
Declare setproctitle() as printf0-like.

26 years agoFixed disordering of cross references in previous commit.
Bruce Evans [Sun, 13 Dec 1998 15:32:26 +0000 (15:32 +0000)]
Fixed disordering of cross references in previous commit.

26 years ago Add reference to login.conf(5)
Matthew Dillon [Sun, 13 Dec 1998 02:48:43 +0000 (02:48 +0000)]
Add reference to login.conf(5)

26 years agoPR: docs/9045
Matthew Dillon [Sun, 13 Dec 1998 02:47:00 +0000 (02:47 +0000)]
PR: docs/9045

    Update chpass(1) manual page.  Change the definition of the class
    field and also reorganize the field list to match that of the
    /etc/master.passwd file, to avoid confusion.

26 years ago oops. Fix indentation of the 'for' loop I just added.
Matthew Dillon [Sun, 13 Dec 1998 01:39:32 +0000 (01:39 +0000)]
oops.  Fix indentation of the 'for' loop I just added.

26 years ago Handle the race condition where vipw may lock a password file which has
Matthew Dillon [Sun, 13 Dec 1998 01:36:45 +0000 (01:36 +0000)]
Handle the race condition where vipw may lock a password file which has
    just been replaced.  After our lock succeeds we check if st_nlink is 0
    and if it is we close the descriptor and retry our open/lock sequence.

26 years agoTweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Archie Cobbs [Sun, 6 Dec 1998 22:58:23 +0000 (22:58 +0000)]
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).

26 years agoSince vfork() was changed to fork(), we have to pass errno back from the
Dag-Erling Smørgrav [Tue, 20 Oct 1998 11:34:11 +0000 (11:34 +0000)]
Since vfork() was changed to fork(), we have to pass errno back from the
child to the parent somehow.

PR: 8353
Submitted by: Andrew J. Korty <ajk@purdue.edu>

26 years agoFixed printf format errors. Assume that uid_t's are representable as
Bruce Evans [Sat, 17 Oct 1998 14:08:12 +0000 (14:08 +0000)]
Fixed printf format errors.  Assume that uid_t's are representable as
unsigned longs.

26 years agoFixed printf format errors. Assume that time_t's are representable as
Bruce Evans [Sat, 17 Oct 1998 14:06:20 +0000 (14:06 +0000)]
Fixed printf format errors.  Assume that time_t's are representable as
longs.

26 years agoCalls one or more of malloc(), warn(), err(), syslog(), execlp() or
Dag-Erling Smørgrav [Tue, 13 Oct 1998 14:52:33 +0000 (14:52 +0000)]
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.

Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.

PR: Loosely related to bin/8252
Approved by: jkh and bde

26 years agoNow take stdio.h out of files that don't require it.
Jordan K. Hubbard [Fri, 9 Oct 1998 11:24:20 +0000 (11:24 +0000)]
Now take stdio.h out of files that don't require it.

26 years agoo move path in libutil.h to paths.h
Jordan K. Hubbard [Fri, 9 Oct 1998 07:32:38 +0000 (07:32 +0000)]
o move path in libutil.h to paths.h
o make property_read() take a fd instead to avoid stdio.h mess
o update auth to new interface.

26 years agoTake the path spec back out.
Jordan K. Hubbard [Fri, 9 Oct 1998 07:28:14 +0000 (07:28 +0000)]
Take the path spec back out.

26 years agoAll these have to include stdio.h now.
Jordan K. Hubbard [Fri, 9 Oct 1998 00:39:09 +0000 (00:39 +0000)]
All these have to include stdio.h now.

26 years agoremove stdio.h include; I forgot Bruce's cardinal rule that header files
Jordan K. Hubbard [Thu, 8 Oct 1998 23:10:41 +0000 (23:10 +0000)]
remove stdio.h include; I forgot Bruce's cardinal rule that header files
shouldn't include other ones (which, unfortunately, is also a hellish
rule since he broke interfaces like sysctl this way by requiring undocumented
header files to be included just in order to be able to use them now - SIGH!).

26 years agoAdd a simple mechanism for reading property lists from files (which
Jordan K. Hubbard [Wed, 7 Oct 1998 17:32:49 +0000 (17:32 +0000)]
Add a simple mechanism for reading property lists from files (which
I'll convert sysinstall to use shortly) and a simple call which uses
this mechanism to implement an /etc/auth.conf file.  I'll let Mark Murray
handle the format and checkin of the sample auth.conf file.
Reviewed by: markm

26 years agoRemove useless `BINOWN=root' now that it is the default.
David E. O'Brien [Sat, 19 Sep 1998 22:42:14 +0000 (22:42 +0000)]
Remove useless `BINOWN=root' now that it is the default.

26 years agoRemove useless `BINOWN=root' now that it is the default.
David E. O'Brien [Sat, 19 Sep 1998 22:42:06 +0000 (22:42 +0000)]
Remove useless `BINOWN=root' now that it is the default.

26 years agoFix inappropriate use of .Ql macro.
Joseph Koshy [Fri, 18 Sep 1998 04:45:43 +0000 (04:45 +0000)]
Fix inappropriate use of .Ql macro.

PR: docs/7905
Submitted by: kuma@jp.freebsd.org

26 years agoBump up the E_SHELL constant after an extra field was added, thus making
Mark Murray [Thu, 3 Sep 1998 17:32:22 +0000 (17:32 +0000)]
Bump up the E_SHELL constant after an extra field was added, thus making
this refer to the wrong data.
Submitted by: axl@iafrica.com (Sheldon Hearn)

26 years agoThe `group{del,mod,show}' take require a '[group|gid]' argument.
Joseph Koshy [Mon, 31 Aug 1998 04:49:04 +0000 (04:49 +0000)]
The `group{del,mod,show}' take require a '[group|gid]' argument.

PR: docs/7788

26 years agoRemoving -batch option from adduser. Adduser was written as
Wolfram Schneider [Mon, 17 Aug 1998 18:50:29 +0000 (18:50 +0000)]
Removing -batch option from adduser. Adduser was written as
an *interactive* command for newbies. The pw(8) does now a much better
job for adding users from command line.  Also, the -batch option is
not well tested, buggy and unsupported.

26 years agoSubmitted by: Peter Hawkins <thepish@freebsd.org>
Peter Hawkins [Fri, 14 Aug 1998 03:47:38 +0000 (03:47 +0000)]
Submitted by: Peter Hawkins <thepish@freebsd.org>
Document last mod (extended gcos)

26 years agoSubmitted by: Peter Hawkins <thepish@FreeBSD.org>
Peter Hawkins [Fri, 14 Aug 1998 03:18:32 +0000 (03:18 +0000)]
Submitted by: Peter Hawkins <thepish@FreeBSD.org>
Add functionality for support for more than 4 subfields within gcos. chsh,
chpass etc did not parse beyond the 4th field previously and so truncated
gcos on updating the database.

26 years ago- On second thought, attempt to get the read-only lock, but don't
Nate Williams [Tue, 4 Aug 1998 22:31:26 +0000 (22:31 +0000)]
- On second thought, attempt to get the read-only lock, but don't
  consider it a exit failure if it doesn't work.  This means that root
  processes can safely get the lock, but normal processes can still use
  the 'pw' utility to get information (which may change out from under
  them.)

26 years ago- Removed read-only lock from 'pw'. This removes portions of the FIX
Nate Williams [Tue, 4 Aug 1998 22:20:11 +0000 (22:20 +0000)]
- Removed read-only lock from 'pw'.  This removes portions of the FIX
  from PR/6787, but allow non-root users to use pw to get password
  information.  However, this should be safe since the fixes for
  disallowing multiple instances from modifying the DB are still intact.

Bug noted by:  dima@best.net (Dima Ruban)

26 years agoFix race condition in pw caused by multiple instances of pwd_mkdb being
Nate Williams [Thu, 16 Jul 1998 17:18:25 +0000 (17:18 +0000)]
Fix race condition in pw caused by multiple instances of pwd_mkdb being
run at the same time.

Notes:
    The fileupdate function is still somewhat broken.  Instead of
    returning a failure code if it can't modify the original file it
    renames the .new file and continues as though nothing is wrong.
    This will cause the lock on the original file to be lost and could
    lead to a similar race condition.  I left that portion of the code
    alone since I feel that the maintainer of the code would have a
    better concept of how he wants to handle errors in that function
    than I do.

PR: bin/6787
Submitted by: Craig Spannring <cts@internetcds.com>

26 years agoCorrect the description of the last four fields.
Steve Price [Sat, 13 Jun 1998 19:14:14 +0000 (19:14 +0000)]
Correct the description of the last four fields.

PR: 6926
Submitted by: Josh Gilliam <josh@quick.net>

26 years agoAlways ask for homedir.
Wolfram Schneider [Sun, 7 Jun 1998 18:38:32 +0000 (18:38 +0000)]
Always ask for homedir.

PR: 6754
Submitted by: uhlar@netlab.sk

26 years agoAdd missing uu_lock_txfr() prototype
Andrey A. Chernov [Fri, 5 Jun 1998 08:21:33 +0000 (08:21 +0000)]
Add missing uu_lock_txfr() prototype

26 years agoTrim a domain part for wtmp as same as showed by "netstat -r".
Atsushi Murai [Mon, 1 Jun 1998 08:47:04 +0000 (08:47 +0000)]
Trim a domain part for wtmp as same as showed by "netstat -r".
Here is a some example for avoiding a confusion.

 It asssumes a logged host domain is "spec.co.jp". All
example is longer than UT_HOSTNAMELEN value.

   1) turbo.tama.spec.co.jp: 192.19.0.2  -> trubo.tama
   2) turbo.tama.foo.co.jp : 192.19.0.2  -> 192.19.0.2
   3) specgw.spec.co.jp    : 202.32.13.1 -> specgw

Submitted by: Atsushi Murai <amurai@spec.co.jp>

26 years agoAdd uu_lock_txfr() to transfer ownership of a successful
Brian Somers [Thu, 28 May 1998 23:17:09 +0000 (23:17 +0000)]
Add uu_lock_txfr() to transfer ownership of a successful
uu_lock() to another process.