summaryrefslogtreecommitdiffstats
path: root/pw/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-08-02 12:47:50 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-08-02 12:47:50 +0000
commite773096e9049d4fb494d9ea86a862cd89d62bdfc (patch)
treea368d404509d0301444ad138027c59bab67d4c46 /pw/Makefile
parentcc2167793425c49a88da118a7b6b48bdb4ad9b81 (diff)
downloadpw-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/Makefile')
-rw-r--r--pw/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw/Makefile b/pw/Makefile
index 87bb5f6..f26c9de 100644
--- a/pw/Makefile
+++ b/pw/Makefile
@@ -3,7 +3,8 @@
PROG= pw
MAN= pw.conf.5 pw.8
SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \
- grupd.c pwupd.c psdate.c bitmap.c cpdir.c rm_r.c strtounum.c
+ grupd.c pwupd.c psdate.c bitmap.c cpdir.c rm_r.c strtounum.c \
+ pw_utils.c
WARNS?= 3