svn commit: r351597 - head/Mk
Mathieu Arnold
mat at FreeBSD.org
Sat Apr 19 13:54:30 UTC 2014
Author: mat
Date: Sat Apr 19 13:54:30 2014
New Revision: 351597
URL: http://svnweb.freebsd.org/changeset/ports/351597
QAT: https://qat.redports.org/buildarchive/r351597/
Log:
Add / to the blacklist of homedirs that should not be created or touched.
With hat: portmgr
Sponsored by: Absolight
Modified:
head/Mk/bsd.port.mk
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Sat Apr 19 12:38:17 2014 (r351596)
+++ head/Mk/bsd.port.mk Sat Apr 19 13:54:30 2014 (r351597)
@@ -4156,7 +4156,7 @@ create-users-groups:
if ! ${PW} usershow $$login >/dev/null 2>&1; then \
${ECHO_MSG} "Creating user \`$$login' with uid \`$$uid'."; \
eval ${PW} useradd $$login -u $$uid -g $$gid $$class -c \"$$gecos\" -d $$homedir -s $$shell; \
- case $$homedir in /nonexistent|/var/empty) ;; *) ${INSTALL} -d -g $$gid -o $$uid $$homedir;; esac; \
+ case $$homedir in /|/nonexistent|/var/empty) ;; *) ${INSTALL} -d -g $$gid -o $$uid $$homedir;; esac; \
else \
${ECHO_MSG} "Using existing user \`$$login'."; \
fi; \
@@ -4172,7 +4172,7 @@ create-users-groups:
${PW} useradd $$login -u $$uid -g $$gid $$class -c \"$$gecos\" -d $$homedir -s $$shell \n \
else \necho \"Using existing user '$$login'.\" \nfi" >> ${_UG_OUTPUT}; \
fi ; \
- case $$homedir in /nonexistent|/var/empty) ;; *) ${ECHO_CMD} "@exec ${INSTALL} -d -g $$gid -o $$uid $$homedir" >> ${TMPPLIST};; esac; \
+ case $$homedir in /|/nonexistent|/var/empty) ;; *) ${ECHO_CMD} "@exec ${INSTALL} -d -g $$gid -o $$uid $$homedir" >> ${TMPPLIST};; esac; \
done
.endfor
.if defined(GROUPS)
More information about the svn-ports-all
mailing list