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

23 years agoFix the rmuser script to correctly determine if a user does not exist.
Adrian Chadd [Wed, 2 May 2001 13:30:42 +0000 (13:30 +0000)]
Fix the rmuser script to correctly determine if a user does not exist.

PR: 26674

23 years agoExtend adduser to create "locked" accounts. Adduser can now lock an
Adrian Chadd [Wed, 2 May 2001 13:20:12 +0000 (13:20 +0000)]
Extend adduser to create "locked" accounts. Adduser can now lock an
account at creation, create accounts with a "*" password (so you can
use alternate authentication schemes without fearing a "default" password
biting you later), and blank passwords.

Yes, adduser could create a blank password account, but this makes it
slightly more difficult to shoot yourself in the foot.

The /etc/adduser.conf entries are:

# use password-based authentication for new users
# defaultusepassword =  "yes" | "no"
defaultusepassword = "yes"

# enable account password at creation
# (the password will be prepended with a star if the account isn't enabled)
# defaultenableaccount = "yes" | "no"
defaultenableaccount = "yes"

# allow blank passwords
# defaultemptypassword = "yes" | "no"
defaultemptypassword = "no"

Requested by: alfred
Reviewed by: alfred

23 years agoDon't pass NULL to the %s format.
Dima Dorfman [Sun, 22 Apr 2001 03:00:09 +0000 (03:00 +0000)]
Don't pass NULL to the %s format.

Reviewed by: kris

23 years agoBy popular demand, have adduser preserve comments at the top of the
Doug Barton [Tue, 17 Apr 2001 09:42:07 +0000 (09:42 +0000)]
By popular demand, have adduser preserve comments at the top of the
group file. Because of the way the group sorting works while printing
out the new file it's not possible at this time to restore comments
in other locations, but at least they won't just disappear altogether.

23 years agoAdd a more useful solution to the problem of password files with more than
Doug Barton [Sun, 15 Apr 2001 20:43:49 +0000 (20:43 +0000)]
Add a more useful solution to the problem of password files with more than
one user who differs only by case. The other perl tools assume (or enforce)
the all lowercase requirement, therefore making the search through
master.passwd case insensitive seemed a reasonable optimization, IMO.

I understand, although I do not sympathize with, the argument that someone
might want to do this on purpose, and might subsequently want to use the
wrong tool for the job. So, this fix should hopefully satisfy both camps.

23 years agoForced commit to point out that PR 25961 was actually originated by
Doug Barton [Sun, 15 Apr 2001 20:38:01 +0000 (20:38 +0000)]
Forced commit to point out that PR 25961 was actually originated by
Dan Langille <dan@freebsddiary.org>.

23 years agoRev 1.11 introduced a bug where the processing became case insensative for
David E. O'Brien [Sun, 15 Apr 2001 20:01:02 +0000 (20:01 +0000)]
Rev 1.11 introduced a bug where the processing became case insensative for
username to rm.

PR: 25961
Submitted by: Linh Pham <lplist@closedsrc.org>

23 years agobeforeinstall -> SCRIPTS.
Ruslan Ermilov [Sat, 7 Apr 2001 11:21:35 +0000 (11:21 +0000)]
beforeinstall -> SCRIPTS.

23 years ago- Backout botched attempt to introduce MANSECT feature.
Ruslan Ermilov [Mon, 26 Mar 2001 14:42:20 +0000 (14:42 +0000)]
- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.

23 years agoo Slap some "_"'s in front of variable names relating to extattr functions,
Robert Watson [Thu, 22 Mar 2001 04:05:40 +0000 (04:05 +0000)]
o Slap some "_"'s in front of variable names relating to extattr functions,
  so as not to pollute application namespace.

Submitted by: bde

23 years agoUse %c for expire/change dates
Andrey A. Chernov [Wed, 21 Mar 2001 13:46:09 +0000 (13:46 +0000)]
Use %c for expire/change dates

23 years agoo Rename "namespace" argument to "attrnamespace" as namespace is a C++
Robert Watson [Mon, 19 Mar 2001 05:04:30 +0000 (05:04 +0000)]
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
  reserved word, causing breakage when a C++ program included libutil.h
  This change will be propagated elsewhere shortly.

Submitted by: jkh
Obtained from: TrustedBSD Project

23 years agomdoc(7) police: simplify bogus ``.Ql Fl'' constructs.
Ruslan Ermilov [Fri, 16 Mar 2001 14:11:41 +0000 (14:11 +0000)]
mdoc(7) police: simplify bogus ``.Ql Fl'' constructs.

23 years agoo To support new EA interface with explicit namespaces, introduce two
Robert Watson [Thu, 15 Mar 2001 03:00:39 +0000 (03:00 +0000)]
o To support new EA interface with explicit namespaces, introduce two
  utility functions which convert between string namespace names and
  numeric constants used by the interface.  Right now, two namespaces
  are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and
  EXTATTR_NAMESPACE_USER ("user").  These functions are used by
  various userland EA utilities, rather than hard coding the routines
  all over the place.

Obtained from: TrustedBSD Project

23 years agoDocument the lock and unlock commands. This fixes a segmentation fault.
Dima Dorfman [Wed, 14 Mar 2001 03:24:30 +0000 (03:24 +0000)]
Document the lock and unlock commands.  This fixes a segmentation fault.

PR: 25187
Approved by: nik

23 years agoDocument the lock and unlock commands.
Dima Dorfman [Wed, 14 Mar 2001 03:22:28 +0000 (03:22 +0000)]
Document the lock and unlock commands.

PR: 25187
Approved by: nik

23 years agoUse the right format string for printing ULONG_MAX.
David Malone [Mon, 5 Mar 2001 11:58:12 +0000 (11:58 +0000)]
Use the right format string for printing ULONG_MAX.

23 years agoSwitch from using rand() or random() to a stronger, more appropriate PRNG
Kris Kennaway [Mon, 5 Mar 2001 02:15:38 +0000 (02:15 +0000)]
Switch from using rand() or random() to a stronger, more appropriate PRNG
(random() or arc4random())

Reviewed by: bde

23 years agoFix typo: seperate -> separate.
Jeroen Ruigrok van der Werven [Tue, 6 Feb 2001 10:39:38 +0000 (10:39 +0000)]
Fix typo: seperate -> separate.

Seperate does not exist in the english language.

Submitted to look at by: kris

23 years agomdoc(7) police: split punctuation characters + misc fixes.
Ruslan Ermilov [Thu, 1 Feb 2001 16:44:04 +0000 (16:44 +0000)]
mdoc(7) police: split punctuation characters + misc fixes.

24 years agoPrepare for mdoc(7)NG.
Ruslan Ermilov [Tue, 16 Jan 2001 09:39:23 +0000 (09:39 +0000)]
Prepare for mdoc(7)NG.

24 years agoFix typo: s/memberhip/membership/
Peter Wemm [Tue, 2 Jan 2001 04:01:59 +0000 (04:01 +0000)]
Fix typo: s/memberhip/membership/

Submitted by:  Peter Avalos <pavalos@theshell.com>

24 years agoConvert to use the <sys/queue.h> macros rather than fiddling with the queue
Ben Smithurst [Fri, 29 Dec 2000 18:04:54 +0000 (18:04 +0000)]
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
structure internals.

Reviewed by: markm

24 years agoPrepare for mdoc(7)NG.
Ruslan Ermilov [Wed, 27 Dec 2000 15:30:30 +0000 (15:30 +0000)]
Prepare for mdoc(7)NG.

24 years agoPrepare for mdoc(7)NG.
Ruslan Ermilov [Tue, 19 Dec 2000 16:00:12 +0000 (16:00 +0000)]
Prepare for mdoc(7)NG.

24 years agoMake the comment generated in /etc/pw.conf match reality
Doug Barton [Mon, 18 Dec 2000 01:35:56 +0000 (01:35 +0000)]
Make the comment generated in /etc/pw.conf match reality

PR: misc/23451
Submitted by: Ben Rosengart, ben@narcissus.net

24 years ago* Fix a long line that I introduced in the last commit
Doug Barton [Sun, 17 Dec 2000 23:42:45 +0000 (23:42 +0000)]
* Fix a long line that I introduced in the last commit
* Backslash escape non-alphanumeric chars in the login name so that perl
  doesn't choke on things like '$'.

24 years agomdoc(7) police: removed history info from the .Os FreeBSD call.
Ruslan Ermilov [Thu, 14 Dec 2000 11:52:05 +0000 (11:52 +0000)]
mdoc(7) police: removed history info from the .Os FreeBSD call.

24 years agoAdd `_PATH_DEVZERO'.
David E. O'Brien [Sat, 9 Dec 2000 09:35:55 +0000 (09:35 +0000)]
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.

24 years agoUse correct macro for path name
Alexey Zelkin [Wed, 22 Nov 2000 17:53:17 +0000 (17:53 +0000)]
Use correct macro for path name

PR: docs/13218

24 years agoIf a user is in the database, rmuser ought to be able to remove them.
Doug Barton [Tue, 21 Nov 2000 05:52:35 +0000 (05:52 +0000)]
If a user is in the database, rmuser ought to be able to remove them.
Address this by using getpwnam(), thus killing several birds with
the same stone. My fix is slightly more aggressive than the
originators. :)

PR: misc/22278

24 years agomdoc(7) police: use the new features of the Nm macro.
Ruslan Ermilov [Mon, 20 Nov 2000 20:10:44 +0000 (20:10 +0000)]
mdoc(7) police: use the new features of the Nm macro.

24 years agomdoc(7) police: use the new features of the Nm macro.
Ruslan Ermilov [Mon, 20 Nov 2000 19:21:22 +0000 (19:21 +0000)]
mdoc(7) police: use the new features of the Nm macro.

24 years agoAvoid use of direct troff requests in mdoc(7) manual pages.
Ruslan Ermilov [Fri, 10 Nov 2000 17:46:15 +0000 (17:46 +0000)]
Avoid use of direct troff requests in mdoc(7) manual pages.

24 years ago Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so
Murray Stokely [Wed, 8 Nov 2000 11:57:03 +0000 (11:57 +0000)]
  Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so
that applications know how large of a buffer they must allocate before
calling property_find().  Also added a $FreeBSD$ tag while I'm here.

Approved by: jkh

24 years agoFix problems people were having with large -O levels with GCC and
Brian Feldman [Fri, 27 Oct 2000 01:19:02 +0000 (01:19 +0000)]
Fix problems people were having with large -O levels with GCC and
getting libutil/libcrypt to work properly.  I've determined that GCC
thinks it can inline all functions, including weak-symboled ones, if
it feels like it.

Create a new stub.c and move any stubs there to prevent inlining.
Thanks to jdp and William S. Duncanson for helping me finally find the
problem.

24 years agoAdd nsswitch support. By creating an /etc/nsswitch.conf file, you can
Jacques Vidrine [Wed, 6 Sep 2000 18:16:48 +0000 (18:16 +0000)]
Add nsswitch support.  By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.

= Hesiod has been added to libc (see hesiod(3)).

= A library routine for parsing nsswitch.conf and invoking callback
  functions as specified has been added to libc (see nsdispatch(3)).

= The following C library functions have been modified to use nsdispatch:
    . getgrent, getgrnam, getgrgid
    . getpwent, getpwnam, getpwuid
    . getusershell
    . getaddrinfo
    . gethostbyname, gethostbyname2, gethostbyaddr
    . getnetbyname, getnetbyaddr
    . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr

= host.conf has been removed from src/etc.  rc.network has been modified
  to warn that host.conf is no longer used at boot time.  In addition, if
  there is a host.conf but no nsswitch.conf, the latter is created at boot
  time from the former.

Obtained from: NetBSD

24 years agoConstify the arg to logout(3). It is const-safe.
Peter Wemm [Mon, 4 Sep 2000 08:13:49 +0000 (08:13 +0000)]
Constify the arg to logout(3).  It is const-safe.
(cosmetic: drop some "register" qualifications too.)

24 years agoMove setproctitle() from libutil to libc (after a repo-copy)
Brian Somers [Sat, 2 Sep 2000 01:51:36 +0000 (01:51 +0000)]
Move setproctitle() from libutil to libc (after a repo-copy)
and bump __FreeBSD_version to 500012 to mark the occasion.

setproctitle() is prototyped in unistd.h as opposed to stdlib.h
where OpenBSD and NetBSD have it.

Reviewed by: peter

24 years agoAdd weak symbol pragma for crypt_set_format().
Jeroen Ruigrok van der Werven [Wed, 23 Aug 2000 11:54:10 +0000 (11:54 +0000)]
Add weak symbol pragma for crypt_set_format().

Approved by: green

24 years agoStick login_setcryptfmt() in its own file to make pulling in of
Brian Feldman [Wed, 23 Aug 2000 03:45:57 +0000 (03:45 +0000)]
Stick login_setcryptfmt() in its own file to make pulling in of
-lcrypt only happen if truly necessary.

24 years agoAdd working and easy crypt(3)-switching. Yes, we need a whole new API
Brian Feldman [Tue, 22 Aug 2000 02:15:54 +0000 (02:15 +0000)]
Add working and easy crypt(3)-switching.  Yes, we need a whole new API
for crypt(3) by now.  In any case:

Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).

The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)

Reviewed by: peter

24 years agoComplete migration of aliases file to /etc/mail/aliases.
Gregory Neil Shapiro [Sun, 13 Aug 2000 18:38:58 +0000 (18:38 +0000)]
Complete migration of aliases file to /etc/mail/aliases.
The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster
have been contacted so those may be updated as well.

24 years agoMove test for -w flag outside of the code dealing with -D (defaults).
David Nugent [Thu, 20 Jul 2000 05:11:56 +0000 (05:11 +0000)]
Move test for -w flag outside of the code dealing with -D (defaults).
This should cause -w's argument not to be ignored in the usermod case,
so it will affect modification of the user's password instead of using
the pw.conf (or internal default=no '*') password method.
PR: bin/11168

24 years agoAllow -g with an empty argument in the -D case. This allows -g "" to set
David Nugent [Thu, 20 Jul 2000 04:37:00 +0000 (04:37 +0000)]
Allow -g with an empty argument in the -D case. This allows -g "" to set
no default group (and thus fall back to user-based groups instead).
PR: bin/5717

24 years agoFix another missed case where usermod would not set the "modified" flag:
David Nugent [Thu, 20 Jul 2000 00:09:29 +0000 (00:09 +0000)]
Fix another missed case where usermod would not set the "modified" flag:
-h - to set no password. But only mark modified if the account is not
already locked (i.e. first char of crypt password field is '*').
PR: bin/19999

24 years agoCatch up to the fact that we now have tcsh in the tree.
David Nugent [Sun, 16 Jul 2000 01:46:26 +0000 (01:46 +0000)]
Catch up to the fact that we now have tcsh in the tree.

24 years agoSupport propogation of file flags when building a homedir from the
David Nugent [Thu, 13 Jul 2000 23:52:49 +0000 (23:52 +0000)]
Support propogation of file flags when building a homedir from the
skeleton directory.
sprintf() -> snprintf() cleanup.
PR: bin/8756
Submitted by: "Nickolay N. Dudorov" <nnd@itfs.nsk.su>

24 years agoDon't call warn() without a format string.
Kris Kennaway [Wed, 12 Jul 2000 00:50:15 +0000 (00:50 +0000)]
Don't call warn() without a format string.

24 years agoFix breakage introduced by bypassing update for additional 'mod'
David Nugent [Mon, 3 Jul 2000 12:13:10 +0000 (12:13 +0000)]
Fix breakage introduced by bypassing update for additional 'mod'
functionality when nothing had actually changed; -d changes would
not set the 'something had changed flag'. Actually test for a
change in homedir.
PR: bin/19649

24 years agoDon't dereference NULL in the userdel case.
David Nugent [Mon, 26 Jun 2000 01:11:44 +0000 (01:11 +0000)]
Don't dereference NULL in the userdel case.

24 years agoLocalize ctype too.
Andrey A. Chernov [Sat, 24 Jun 2000 13:36:13 +0000 (13:36 +0000)]
Localize ctype too.
Add weekday to showuser expired fields

24 years agoLocalize time/date.
Andrey A. Chernov [Thu, 22 Jun 2000 16:48:41 +0000 (16:48 +0000)]
Localize time/date.
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.

24 years agoFix obvious braino in assignment statement. usermod -g should work again.
David Nugent [Sun, 18 Jun 2000 02:48:56 +0000 (02:48 +0000)]
Fix obvious braino in assignment statement. usermod -g should work again.
PR: 17877
Submitted by: pius@zyan.com

24 years agoBe a little more strict about handling command line args. This allows user and
David Nugent [Sun, 18 Jun 2000 02:39:17 +0000 (02:39 +0000)]
Be a little more strict about handling command line args. This allows user and
group names like 'help' 'mod' 'user' 'group' etc. to work correctly without
requiring the -n style invocation.
PR: misc/17069

24 years agoFix a long-standing bug in the rename case previously masked by another bug
David Nugent [Sun, 18 Jun 2000 02:18:15 +0000 (02:18 +0000)]
Fix a long-standing bug in the rename case previously masked by another bug
just fixed in .db file updating.

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.