| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
Check early that the new name fits MAXLOGNAME and store it in pwconf
|
|
|
|
|
| |
Mutualize code to validate inputs of both 'user' and 'group' command
Test that the input name fits into MAXLOGNAME
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Do not add anymore -R and -V to arglist
Add an error message if both -V and -R are set in arguments
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
to char *, change pw_checkname to directly take char * in input
|
|
|
|
|
|
|
|
| |
This allows to set an alternate root directory in which the users/groups will be
manipulated
Requested by: gjb, ian
Tested by: gjb
|
|
|
|
| |
use %u for uid_t and gid_t
|
| |
|
|
|
|
|
|
|
|
| |
Some of errors were returned to the main function, some others caused a direct
exit via err(3).
The main function is only interested in EXIT_SUCCESS, so in all other cases
replace warn(3) + return err by err(3)
|
| |
|
|
|
|
| |
Remove useless "else"
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
uid and gid are never and should never be negative. The pw(8) manpage clearly
states the -u and -g arguments are for uids/gids, hence using negative values is
abusing a bug in former versions of pw(8)
|
|
|
|
|
| |
PR: 196514
MFC after: 1 week
|
|
|
|
|
|
| |
Check the uid passed is actually a number as early as possible
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
The user was perperly adding the to different groups from "list" but was not
removed from the other groups it could have belong to.
While here add a regression test about this bug
PR: 185666
Reported by: sub.mesa@gmail.com
MFC after: 1 week
|
|
|
|
|
|
| |
in r252688.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
Previuosly given 'foo,bar' members, removing 'foo' would result in an
infinite loop.
PR: 191427
Submitted by: Voradesh Yenbut <yenbut cs.washington.edu>
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
| |
is not associated with user "username". E.g., user "foo" has primary group
"wheel" and is unassociated with group "foo", yet userdel would delete the
group "foo" when deleting user "foo" (despite the fact that user "foo" is
not associated with group "foo" in any way).
Patch committed with minor style(9) changes.
PR: bin/169471
Submitted by: Alexander Pyhalov <apyhalov@gmail.com>
|
|
|
|
|
|
|
|
| |
Don't let pw crash when give certain input.
PR: 187310
Submitted by: Kim Shrier
MFC after: 1 week
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
| |
date to the current date.
MFC after: 3 days
|
|
|
|
| |
Submitted by: dt71@gmx.com
|
|
|
|
| |
a user whose group != username.
|
| |
|
| |
|
|
|
|
| |
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
|
|
|
|
|
|
| |
terminator is j + 2.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
|
|
|
|
| |
Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim
|
|
|
|
|
|
| |
Submitted by: db
Approved by: cperciva
MFC after: 2 weeks
|
|
|
|
| |
MFC after: 2 months
|
|
|
|
| |
Reported by: Robert Bonomi <bonomi@mail.r-bonomi.com>
|
|
|
|
|
|
|
|
|
| |
number.
This also allow pw user show to work as expected.
PR: bin/172112
Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru>
MFC after: 1 month
|
| |
|
|
|
|
|
|
| |
ptrdiff_t.
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
historic behavior (create the default base directory in pw.conf) before
I came up with a better fix for this.
Requested by: nwhitehorn
Approved by: re (kib)
|
|
|
|
| |
MFC after: 1 month
|
|
|
|
|
|
|
| |
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
|
|
|
|
|
| |
The size of the username record in utmp files should not influence the
maximum username length. Right now ut_user/ut_name is big enough, so in
this case it's dead code anyway.
|