diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-02 12:47:50 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-02 12:47:50 +0000 |
commit | e773096e9049d4fb494d9ea86a862cd89d62bdfc (patch) | |
tree | a368d404509d0301444ad138027c59bab67d4c46 /pw/pw_nis.c | |
parent | cc2167793425c49a88da118a7b6b48bdb4ad9b81 (diff) | |
download | pw-darwin-e773096e9049d4fb494d9ea86a862cd89d62bdfc.tar.gz pw-darwin-e773096e9049d4fb494d9ea86a862cd89d62bdfc.tar.zst pw-darwin-e773096e9049d4fb494d9ea86a862cd89d62bdfc.zip |
Rewrite parsing subcommands arguments of pw(8)
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.
Diffstat (limited to 'pw/pw_nis.c')
-rw-r--r-- | pw/pw_nis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pw/pw_nis.c b/pw/pw_nis.c index c786cc7..6697835 100644 --- a/pw/pw_nis.c +++ b/pw/pw_nis.c @@ -43,6 +43,7 @@ pw_nisupdate(const char * path, struct passwd * pwd, char const * user) struct passwd *pw = NULL; struct passwd *old_pw = NULL; + printf("===> %s\n", path); if (pwd != NULL) pw = pw_dup(pwd); |