dd
3c48707476
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
2001-09-03 14:12:42 +00:00
dd
b9e2a3df4b
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.
2001-08-30 06:32:17 +00:00
joerg
7cdb2456bc
Properly initialize the random number generator in pw_getpass().
...
Right now, the automatically generated passwords have been rather
predictable. :-(
MFC after: 1 day
2001-08-21 13:33:20 +00:00
joerg
637fbcbedb
Fix a typo in a variable name that made pw(8) coredump when using
...
USE_MD5RAND.
MFC after: 2 days
2001-08-21 10:29:01 +00:00
brian
9e766e7f13
Handle snprintf() returning < 0 (not just -1)
...
MFC after: 2 weeks
2001-08-20 15:09:34 +00:00
brian
d48c427cd5
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 13:24:39 +00:00
obrien
9c97c8f02d
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.
2001-07-20 06:20:32 +00:00
obrien
be022bb715
Remove GCC'isms in CFLAGS.
2001-07-20 04:23:13 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
dd
eaa6ee03b8
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
brian
8636b161b3
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
ru
88bd9429d1
Don't override the default BINMODE.
...
Submitted by: bde
2001-07-05 15:25:05 +00:00
kris
5a1251c5ff
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
2001-07-05 08:01:15 +00:00
dd
e3cab8dc0c
Include missing header files which define functions for which gcc has
...
builtints (e.g., exit, strcmp).
2001-06-24 20:25:23 +00:00
dd
a284c32828
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>
2001-06-19 00:39:29 +00:00
ru
afd506414e
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ache
f55dab1d8b
Use %c for expire/change dates
2001-03-21 13:46:09 +00:00
ru
97b1481159
mdoc(7) police: simplify bogus ``.Ql Fl'' constructs.
2001-03-16 14:11:41 +00:00
dd
24b0122a84
Document the lock and unlock commands. This fixes a segmentation fault.
...
PR: 25187
Approved by: nik
2001-03-14 03:24:30 +00:00
dd
bfdb3b217b
Document the lock and unlock commands.
...
PR: 25187
Approved by: nik
2001-03-14 03:22:28 +00:00
kris
1854a6d141
Switch from using rand() or random() to a stronger, more appropriate PRNG
...
(random() or arc4random())
Reviewed by: bde
2001-03-05 02:15:38 +00:00
ru
66cd8f698e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:44:04 +00:00
ru
ffef081534
Prepare for mdoc(7)NG.
2001-01-16 09:39:23 +00:00
peter
ee9f6ce82c
Fix typo: s/memberhip/membership/
...
Submitted by: Peter Avalos <pavalos@theshell.com>
2001-01-02 04:01:59 +00:00
ben
aa10518020
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
...
structure internals.
Reviewed by: markm
2000-12-29 18:04:54 +00:00
dougb
1fd2c926a8
Make the comment generated in /etc/pw.conf match reality
...
PR: misc/23451
Submitted by: Ben Rosengart, ben@narcissus.net
2000-12-18 01:35:56 +00:00
obrien
c2ee1dcc02
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
ru
71e2293ad4
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
green
67c40ef892
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
2000-08-22 02:15:54 +00:00
davidn
35b42ab19e
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
2000-07-20 05:11:56 +00:00
davidn
94db016d55
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
2000-07-20 04:37:00 +00:00
davidn
c4d081a807
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
2000-07-20 00:09:29 +00:00
davidn
14da5481e1
Catch up to the fact that we now have tcsh in the tree.
2000-07-16 01:46:26 +00:00
davidn
092cc1f8f9
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>
2000-07-13 23:52:49 +00:00
davidn
93ab0f9072
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
2000-07-03 12:13:10 +00:00
davidn
c85586d6d2
Don't dereference NULL in the userdel case.
2000-06-26 01:11:44 +00:00
ache
659df59b0e
Localize ctype too.
...
Add weekday to showuser expired fields
2000-06-24 13:36:13 +00:00
ache
77729ceb43
Localize time/date.
...
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.
2000-06-22 16:48:41 +00:00
davidn
15756f138e
Fix obvious braino in assignment statement. usermod -g should work again.
...
PR: 17877
Submitted by: pius@zyan.com
2000-06-18 02:48:56 +00:00
davidn
4a7877f9e8
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
2000-06-18 02:39:17 +00:00
davidn
1553afea75
Fix a long-standing bug in the rename case previously masked by another bug
...
just fixed in .db file updating.
2000-06-18 02:18:15 +00:00
davidn
faaa880c55
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>
2000-06-18 02:16:07 +00:00
davidn
bb77488761
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
2000-06-06 07:33:00 +00:00
jake
961b97d434
Back out the previous change to the queue(3) interface.
...
It was not discussed and should probably not happen.
Requested by: msmith and others
2000-05-26 02:09:24 +00:00
jake
d93fbc9916
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
2000-05-23 20:41:01 +00:00
sheldonh
244b8ead7d
Remove more single-space hard sentence breaks.
2000-03-02 14:54:02 +00:00
sheldonh
b2240fc1c0
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.
2000-03-01 14:09:25 +00:00
davidn
1b86060031
Portability fixes for other bsd4.4 derivatives.
2000-01-15 00:20:22 +00:00
peter
d44e2d4226
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.
1999-12-18 13:55:17 +00:00
marcel
e32efbad28
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.
1999-12-16 10:55:45 +00:00