From 65b93420c5b25b2bbca2115b46527edcede06b9a Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 4 Feb 2002 10:47:44 +0000 Subject: [PATCH] Fixed some wrong permissions, fixed FreeBSD mbpasswd --- Makefile | 2 ++ unix/pw_util.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index abb88b4b..10ef4800 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,8 @@ install: ${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/var ; \ chmod -R 0750 ${PREFIX}/var ; \ fi + @chmod 0770 ${PREFIX}/var + @chmod 0770 ${PREFIX}/var/mail for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done dist tar: ${TARFILE} diff --git a/unix/pw_util.c b/unix/pw_util.c index e64249c0..ae8d2a55 100644 --- a/unix/pw_util.c +++ b/unix/pw_util.c @@ -272,7 +272,6 @@ void pw_copy(int ffd, int tfd, struct passwd *pw) goto err; continue; } - *p = '\0'; if (!(p = strchr(buf, ':'))) { syslog(LOG_WARNING, "%s: corrupted entry", _PATH_MASTERPASSWD); pw_error(NULL, 0, 1);