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

26 years agoFixed `make -j9' by putting generated headers in ${SRCS}. Removed bogus
Bruce Evans [Sun, 26 Apr 1998 16:31:14 +0000 (16:31 +0000)]
Fixed `make -j9' by putting generated headers in ${SRCS}.  Removed bogus
dependencies of generated .c files on generated headers (these made
`make -JN' work provided `depend' was made first).  Sorted sources lists.

26 years ago.Nm pw -> .Nm.
Philippe Charnier [Mon, 23 Mar 1998 08:28:12 +0000 (08:28 +0000)]
.Nm pw -> .Nm.

26 years agoAdd rcsid. Correct -Wall warning.
Philippe Charnier [Mon, 23 Mar 1998 07:41:49 +0000 (07:41 +0000)]
Add rcsid. Correct -Wall warning.

26 years agoMF22: Remove confusing comma
Tim Vanderhoek [Wed, 18 Mar 1998 16:21:55 +0000 (16:21 +0000)]
MF22: Remove confusing comma

26 years agoClarify the -batch arguments.
Steve Price [Sat, 14 Feb 1998 22:55:23 +0000 (22:55 +0000)]
Clarify the -batch arguments.

PR: 5677
Submitted by: Adrian Filipi-Martin <adrian@virginia.edu>

26 years agoOverhaul this manpage - removing typos, awkward phrasing, and addressing
Steve Price [Sat, 14 Feb 1998 18:33:37 +0000 (18:33 +0000)]
Overhaul this manpage - removing typos, awkward phrasing, and addressing
a few technical faults.

PR: 5692
Submitted by: dannyman@arh0300.urh.uiuc.edu

26 years agopwd_mkdb option '-c' was renamed to -C some weeks ago.
Wolfram Schneider [Wed, 11 Feb 1998 23:31:24 +0000 (23:31 +0000)]
pwd_mkdb option '-c' was renamed to -C some weeks ago.

PR: bin/5715
Submitted by:  dannyman <dannyman@arh0300.urh.uiuc.edu>

26 years agoTypo.
Wolfram Schneider [Mon, 2 Feb 1998 15:46:44 +0000 (15:46 +0000)]
Typo.

27 years agoRename the pwd_mkdb(8) option '-c' to '-C' for better compatiblity
Wolfram Schneider [Sat, 10 Jan 1998 17:27:28 +0000 (17:27 +0000)]
Rename the pwd_mkdb(8) option '-c' to '-C' for better compatiblity
with BSD/OS.

27 years agoUse consistent spelling,
Tim Vanderhoek [Thu, 25 Dec 1997 09:36:42 +0000 (09:36 +0000)]
Use consistent spelling,
writeable -> writable (recall prior debate over this? :-)
initialise -> initialize
recognise -> recognize

Merry Christmas! :)

27 years agoSmall bugfix: store $uid_start instead hard coded value 1000
Wolfram Schneider [Wed, 24 Dec 1997 11:44:14 +0000 (11:44 +0000)]
Small bugfix: store $uid_start instead hard coded value 1000
in /etc/adduser.conf.

27 years agoRemoved extra (non-trailing) arg in a call to warnx().
Bruce Evans [Thu, 18 Dec 1997 15:27:43 +0000 (15:27 +0000)]
Removed extra (non-trailing) arg in a call to warnx().

27 years agoTypo alert.
James Raynard [Sun, 2 Nov 1997 00:58:39 +0000 (00:58 +0000)]
Typo alert.

27 years agoStatisize usage().
Philippe Charnier [Mon, 27 Oct 1997 07:53:22 +0000 (07:53 +0000)]
Statisize usage().

27 years agoStaticize usage(). Cosmetics.
Philippe Charnier [Fri, 10 Oct 1997 06:27:07 +0000 (06:27 +0000)]
Staticize usage(). Cosmetics.

27 years agoUse err(3) instead of local redefinition. Add rcsid string.
Philippe Charnier [Fri, 10 Oct 1997 06:23:42 +0000 (06:23 +0000)]
Use err(3) instead of local redefinition. Add rcsid string.

27 years agoChanges to support full make parallelism (-j<n>) in the world
Jordan K. Hubbard [Sun, 5 Oct 1997 09:40:24 +0000 (09:40 +0000)]
Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by: <many different folks>
Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>

27 years agoEndless loop.
Wolfram Schneider [Mon, 29 Sep 1997 13:13:51 +0000 (13:13 +0000)]
Endless loop.

$ vipw
[corrupt a line in editor, exit editor]
pwd_mkdb: corrupted entry
pwd_mkdb: at line #2
pwd_mkdb:
/etc/pw.012585: Inappropriate file type or format
re-edit the password file? [y]: n^D^D
[hang]

27 years agoQuieten -Wall.
Mark Murray [Sun, 28 Sep 1997 08:46:12 +0000 (08:46 +0000)]
Quieten -Wall.

27 years agoDo not complain about non existing shell "/nonexistent"
Wolfram Schneider [Sat, 20 Sep 1997 19:59:54 +0000 (19:59 +0000)]
Do not complain about non existing shell "/nonexistent"
Smarter error check if a uid is already in use.

Submitted by: "Eugene Radchenko" <genie@qsar.chem.msu.su>

27 years agoDo not accept empty user names.
Wolfram Schneider [Sat, 20 Sep 1997 18:26:22 +0000 (18:26 +0000)]
Do not accept empty user names.

27 years agoAdd manpage links ypchpass.1, ypchfn.1, ypchsh.1
Wolfram Schneider [Sat, 13 Sep 1997 12:21:25 +0000 (12:21 +0000)]
Add manpage links ypchpass.1, ypchfn.1, ypchsh.1

27 years agoThe parameters to logwtmp should be const char's
Paul Traina [Thu, 4 Sep 1997 22:38:59 +0000 (22:38 +0000)]
The parameters to logwtmp should be const char's

27 years agoUnquote default group in pw.conf.
David Nugent [Mon, 1 Sep 1997 09:33:08 +0000 (09:33 +0000)]
Unquote default group in pw.conf.
PR: 4365
Submitted by: "Andrew L. Moore" <alm@mclink.com>

27 years agoCosmetic changes.
Philippe Charnier [Mon, 1 Sep 1997 06:14:17 +0000 (06:14 +0000)]
Cosmetic changes.

27 years agoRemove login_progok()
Brian Somers [Sun, 31 Aug 1997 20:09:39 +0000 (20:09 +0000)]
Remove login_progok()
Suggested by: guido

27 years agoAdd full support for determining if a user
Brian Somers [Wed, 27 Aug 1997 20:06:20 +0000 (20:06 +0000)]
Add full support for determining if a user
is restricted from running a given program.

27 years agoStop the growing list of shells if /etc/adduser.conf
Wolfram Schneider [Tue, 26 Aug 1997 22:47:51 +0000 (22:47 +0000)]
Stop the growing list of shells if /etc/adduser.conf
was updated.

27 years agoCosmetic: distinguish in diag message between rebuilding and updating
Joerg Wunsch [Sun, 24 Aug 1997 18:23:21 +0000 (18:23 +0000)]
Cosmetic: distinguish in diag message between rebuilding and updating
the database.

PR: 3397
Submitted by: taob@risc.org (Brian Tao)

27 years agoImplement canonical locking protocol
Andrey A. Chernov [Sun, 10 Aug 1997 18:42:39 +0000 (18:42 +0000)]
Implement canonical locking protocol
Suggested by: joerg

27 years agoFix -p switch.
David Nugent [Fri, 1 Aug 1997 15:06:21 +0000 (15:06 +0000)]
Fix -p switch.

27 years agoNologin is also a valid 'invalid' shell
Paul Traina [Thu, 31 Jul 1997 15:25:35 +0000 (15:25 +0000)]
Nologin is also a valid 'invalid' shell

27 years agoModify passwd and chpass to use new AF_LOCAL RPC interface instead of
Bill Paul [Tue, 29 Jul 1997 15:45:36 +0000 (15:45 +0000)]
Modify passwd and chpass to use new AF_LOCAL RPC interface instead of
old kludged-up 'yppasswd_comm' support.

27 years agoDelete dead test code.
Wolfram Schneider [Thu, 24 Jul 1997 17:44:46 +0000 (17:44 +0000)]
Delete dead test code.

27 years ago`cp -r' -> `cp -R'
Wolfram Schneider [Fri, 18 Jul 1997 12:05:43 +0000 (12:05 +0000)]
`cp -r' -> `cp -R'
Option -r is obsolete and buggy.

27 years agogetuid() -> geteuid().
David Nugent [Thu, 17 Jul 1997 08:37:47 +0000 (08:37 +0000)]
getuid() -> geteuid().

27 years agoRemove addgroup/rmgroup -- they are completely replaced by pw(1).
Paul Traina [Sat, 5 Jul 1997 19:12:45 +0000 (19:12 +0000)]
Remove addgroup/rmgroup -- they are completely replaced by pw(1).

Adduser/rmuser stay for now until we get a good user-friendly front-end
for pw.

27 years agoFree a malloc'ed variable before exiting. Compute line number when parsing
Philippe Charnier [Wed, 25 Jun 1997 06:59:55 +0000 (06:59 +0000)]
Free a malloc'ed variable before exiting. Compute line number when parsing
input file, it helps finding errors.
Obtained from: OpenBSD.

27 years agoFix a minor nit in the .Dd macro invocation so that
Steve Price [Mon, 23 Jun 1997 04:52:13 +0000 (04:52 +0000)]
Fix a minor nit in the .Dd macro invocation so that
the revision date is displayed correctly.

27 years agoRemove srandomdev fallback code
Andrey A. Chernov [Sat, 14 Jun 1997 00:27:03 +0000 (00:27 +0000)]
Remove srandomdev fallback code

27 years agoAdd "break" inadvertently removed in previous update.
David Nugent [Fri, 13 Jun 1997 22:26:41 +0000 (22:26 +0000)]
Add "break" inadvertently removed in previous update.
PR: 3820
Submitted by: Joseph Stein <joes@spiritone.com>

27 years agoFixes skeleton directory test-it-is-a-directory logic.
David Nugent [Sat, 24 May 1997 10:41:49 +0000 (10:41 +0000)]
Fixes skeleton directory test-it-is-a-directory logic.
PR: 3666
Reviewed by:
Submitted by: iaint@css.tuu.utas.edu.au
Obtained from:

27 years agoNow I really understand the reason for the style.9 rule about not having
Peter Wemm [Mon, 19 May 1997 10:04:15 +0000 (10:04 +0000)]
Now I really understand the reason for the style.9 rule about not having
visible type names in prototypes in user space headers.  libutil.h
generates warnings with -Wall over the use of "const char *ttyname".
It's lucky it wasn't a #define conflict.
Is a single '_' prefix acceptable? or does it need to be two?

27 years agoFor non-root uids, consider root-owned files also 'secure' unless otherwise
David Nugent [Thu, 15 May 1997 06:06:32 +0000 (06:06 +0000)]
For non-root uids, consider root-owned files also 'secure' unless otherwise
disqualified.

27 years agoMake uu_* const correct.
Brian Somers [Mon, 12 May 1997 10:36:14 +0000 (10:36 +0000)]
Make uu_* const correct.

Suggested by: joerg