Age | Commit message (Collapse) | Author |
|
Based on a patch from Sam Smith. henning@ OK
|
|
userdel since a username may contain regexp special chars.
Fix a memory leak on error and chmod before moving the new group
file is moved into place instead of after.
Saner error messages in rm_user_from_groups() (cut & pastos)
OK deraadt@, tdeval@ and otto@; error message fixes courtesy of otto@
|
|
with fgets() (which does). Using fgetln() doesn't make a huge amount
of sense since passwd entries are required to be short and mustn't contain
NULs. This also fixes a bus error on sparc64 (caused by passing a pointer
to an int when a pointer to size_t was expected) found by pvalchev@.
Tested and OK pvalchev@
|
|
ok otto@
|
|
multiple '&'s. Resolves PR 3616.
ok deraadt@
|
|
from Franciszek Holop;
|
|
from Jeff Ross.
|
|
ok millert@
|
|
up->u_flags. Fixes a coredump when changing/deleting an existing
user introduced by my recent commit here.
|
|
Peter Werner. Closes PR 2699.
|
|
o Correct some error messages
o More informative error when reading a line that is > LINE_MAX
o When saving password, only alloc space for what is used
|
|
check in useradd or usermod whether the given encrypted password
has the correct length.
Factor out time code into a function, scantime()
Perform ctype(3) operations on unsigned chars.
From NetBSD (agc)
|
|
and modification of user and group information.
Syslog priority is LOG_INFO, facility is LOG_USER (there is no need to
do this via LOG_AUTH, since the password and group files are world
readable).
From NetBSD (agc)
|
|
|
|
o remove user from supplementary groups when deleting a user and not
preserving information.
o add some const
o check that user/group is local (not YP) before trying to change it.
From NetBSD (agc)
|
|
|
|
|
|
seconds-since-epoch. From NetBSD (grant).
|
|
|
|
instead of just a warning which is consistent with the way an invalid
user is treated.
|
|
|
|
by default. Idea from Ross.Richardson@utas.edu.au, discussed with
millert@; closes PR 3257.
|
|
will reject such a name; from Brian Poole
|
|
|
|
ok millert@
|
|
tftpd(8): tweak and ok millert@
tokenadm(8): tweak and ok millert@
|
|
eeprom(8): added .Ar to fields, removed references to sun3
sshd(8): help and ok markus@
help and ok millert@
|
|
void cast from pw_abort() since it is already void.
From NetBSD via Brian Poole.
|
|
|
|
|
|
|
|
the short write cases.
|
|
samba wants to create usernames that end in '$'. From Paul Chakravarti
|
|
|
|
|
|
|
|
Noticed by Brian Poole who supplied a different patch.
|
|
newline was not added. Reported by Rob Sessink, different fix by me.
|
|
o unlink /etc/group temp file if rename fails
o when doing 'cd' in a system() separate with && not ';' so we don't
do stuff in the wrong place. Much of this should just be done inline.
|
|
those found in the config file. Those on the command line should
be used in preference to the config file ranges.
Based on a patch from Brian Poole.
|
|
millert@ ok
|
|
option to change was specified. Also fix man page formatting mistake.
From Brian Poole
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
o fix two err() calls that should be errx()
o don't use the colonc variable in a non-obvious way
o add missing or of F_SHELL when in preserve mode
|
|
o Change "unsigned" -> "unsigned int"
o Correct a buffer size that should have been LINE_MAX
o Simplify creation of group entry in groupmod() using strlcat() and
catch errors.
Theo and myself...
|
|
|
|
ok millert@
|
|
If group file line would grow to be too long, leave it unmolested (previously
it would get removed).
Use fclose(fp) not close(fd) for a stream that was fdopen()ed. Otherwise
we could leak memory.
When calling fwrite() pass the buffer as a single element instead of
using n one-byte elements.
|
|
o use LINE_MAX for the max password entry length. This is also what
pwd_mkdb does.
o add more checks for lines that are too long
o kill some useless (and incorrect) casts
o check snprintf() return vals for sanity before use
o sync usage() with man pages
o slight KNF
o eliminate some silly uses of snprintf
|
|
|