diff options
author | bapt <bapt@FreeBSD.org> | 2015-08-02 12:47:50 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-08-02 12:47:50 +0000 |
commit | 4f6bdcfb5d991cad957a55f5585949b946a630e0 (patch) | |
tree | d5d6ce85a1426eb1e7646c1704429db2f4b92b47 /usr.sbin/pw/pw_nis.c | |
parent | 55f7ded2fa64774e32d065c22e0d5d433329bb77 (diff) | |
download | FreeBSD-src-4f6bdcfb5d991cad957a55f5585949b946a630e0.zip FreeBSD-src-4f6bdcfb5d991cad957a55f5585949b946a630e0.tar.gz |
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 'usr.sbin/pw/pw_nis.c')
-rw-r--r-- | usr.sbin/pw/pw_nis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw_nis.c b/usr.sbin/pw/pw_nis.c index c786cc7..6697835 100644 --- a/usr.sbin/pw/pw_nis.c +++ b/usr.sbin/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); |