mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
d2d022b9fd
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.
20 lines
320 B
Makefile
20 lines
320 B
Makefile
# $FreeBSD$
|
|
|
|
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 \
|
|
pw_utils.c
|
|
|
|
WARNS?= 3
|
|
|
|
LIBADD= crypt util sbuf
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|