| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
| |
Add a regression test about it
PR: 204968
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
| |
netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Divison
|
|
|
|
| |
Reported by: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
|
| |
|
|
|
|
| |
Add regression test about it
|
|
|
|
|
|
|
|
| |
Readd the function to create the parents home directory if it does not exists.
if it is only a directory at the top level of the hierarchy symlink it into /usr
as it used to be done before.
Reported by: kevlo, adrian
|
|
|
|
| |
Reported by: gjb
|
|
|
|
|
| |
While pw(8) on head is not affected it is worth adding more regression tests
ensuring this bug will not happen unnoticed in the futur
|
|
|
|
| |
This makes the regression tests pass on systems where time_t is 32bits
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now each subcommands checks its arguments in a dedicated functions.
This helps improving input validation, code readability/maintainability
While here:
- Add a -y option to pw userdel/usermod so it can maintain NIS servers if
nispasswd is not defined in pw.conf(5)
- Allow pw -r <rootdir> to remove directory with userdel -r
- Fix bug when renaming a user which was not renaming the user name it groups
it is a member of.
- Only parse pw.conf(5) when needed.
|
|
|
|
|
|
| |
First they are redundant with the tests we currently have on pw(8)
Second they to modify the host database instead of being self contained withing
the test directory
|
|
|
|
|
|
|
| |
UID_MAX/GID_MAX
PR: 173977
Reported by: nvass@gmx.com
|
|
|
|
|
|
|
|
| |
a name so do not try to convert it to an id if it is a numeric value
PR: 31933
Reported by: ted@impulse.net
Sponsored by: gandi.net
|
| |
|
| |
|
|
|
|
|
|
|
| |
Rewrite rm_r to use *at function, allowing to remove home directories along with
users. only crontabs and at(1) installation are not removed
Relnotes: yes
|
|
|
|
|
|
|
|
|
| |
functions
This allows to simplify the code a bit for -R by not having to keep modifying
path and also prepare the code to improve support -R in userdel
While here, add regression tests for the functionality
|
| |
|
|
|
|
|
| |
Use gr_add(3) when possible to avoid code duplication.
Use a simpler logic to delete members of a group
|
|
|
|
|
|
| |
of creating a user (regression from r285136)
Reported by: Fabian Keil <fk@fabiankeil.de>
|
|
|
|
|
|
| |
PR: 198554
Reported by: diaran <fbsd@centraltech.co.uk>
MFC after: 2 days
|
|
|
|
|
| |
Simplify the code, by only using one parser, ensure the dates (hours and dates)
are valid
|
|
|
|
| |
Use strptime_l(3) to validate the dates provided in input
|
|
|
|
|
|
|
| |
Push the code that set the password into a separate function to improve
readability
Add regression tests about pw usermod -h and pw usermod -H
|
| |
|
| |
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
time stamps.
PR: 197861
Approved by: will
|
|
|
|
| |
Approved by: will
|
|
|
|
|
| |
PR: 197612
Approved by: will
|
|
|
|
|
|
| |
PR: 197612
Submitted by: Robert O'Niel <oneil.rs@gmail.com>
Approved by: will
|
|
|
|
|
|
| |
PR: 197120
Submitted by: Robert O'Neil <oneil.rs@gmail.com>
Approved by: will
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
PR: 150449
Submitted by: Robert O'Neil <oneil.rs@gmail.com>
Approved by: will
|
|
|
|
|
| |
Reviewed by: will
Suggested by: ngie
|
|
|
|
|
|
|
|
| |
Fix a missing test in the Makefile from my previous commit.
PR: 195834 [1]
Submitted by: Robert O'Neil <oneil.rs@gmail.com>
Approved by: will
|
|
|
|
| |
Approved by: will
|
|
|
|
|
|
| |
PR: 195832
Submitted by: Robert O'Neil <oneil.rs@gmail.com>
Approved by: will
|
|
|
|
|
|
| |
across all the tests as needed.
Reviewed by: will
|
|
|
|
| |
Reviewed by: will
|
|
|
|
|
| |
Submitted by: Robert O'Neil <oneil.rs@gmail.com>
Reviewed by: will
|
|
|
|
|
|
|
| |
Add a regression test about it
PR: 194971
Submitted by: Freddy DISSAUX <bugzilla@dsx.bsdsx.fr>
|
|
|
|
| |
requires it)
|
|
|
|
|
|
|
|
|
| |
- Suffix useradd/userdel commands with pw
- Remove the atf_expect_fail for bin/39546
Phabric: D921
Reviewed by: brd
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
|
|
| |
Add a regression test to pw(8) because the bug was discovered via using:
pw groupmod
PR: 187189
Reported by: mcdouga9@egr.msu.edu
Tested by: mcdouga9@egr.msu.edu
Patch by: Marc de la Gueronniere
|
|
|
|
|
|
| |
Check the uid passed is actually a number as early as possible
MFC after: 1 week
|