Fixed some wrong permissions, fixed FreeBSD mbpasswd

This commit is contained in:
Michiel Broek 2002-02-04 10:47:44 +00:00
parent ca70e6659e
commit 65b93420c5
2 changed files with 2 additions and 1 deletions

View File

@ -146,6 +146,8 @@ install:
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/var ; \ ${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/var ; \
chmod -R 0750 ${PREFIX}/var ; \ chmod -R 0750 ${PREFIX}/var ; \
fi fi
@chmod 0770 ${PREFIX}/var
@chmod 0770 ${PREFIX}/var/mail
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done
dist tar: ${TARFILE} dist tar: ${TARFILE}

View File

@ -272,7 +272,6 @@ void pw_copy(int ffd, int tfd, struct passwd *pw)
goto err; goto err;
continue; continue;
} }
*p = '\0';
if (!(p = strchr(buf, ':'))) { if (!(p = strchr(buf, ':'))) {
syslog(LOG_WARNING, "%s: corrupted entry", _PATH_MASTERPASSWD); syslog(LOG_WARNING, "%s: corrupted entry", _PATH_MASTERPASSWD);
pw_error(NULL, 0, 1); pw_error(NULL, 0, 1);