summaryrefslogtreecommitdiff
path: root/net/samba3
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2001-09-03 13:55:16 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2001-09-03 13:55:16 +0000
commitfb5ee205bfd6f6c793fd525416787a9a5df5bd3b (patch)
tree5f19337f316a1addf762385f7795148671bf04aa /net/samba3
parentUpdate to 2.05 and add WWW. (diff)
Skip comments when piping /etc/passwd through make_smbpasswd, else the
script will try to make Samba users out of comments. (from net/samba/Makefile 1.50)
Notes
Notes: svn path=/head/; revision=47365
Diffstat (limited to 'net/samba3')
-rw-r--r--net/samba3/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/samba3/Makefile b/net/samba3/Makefile
index a7ba0a4d78c7..5080bdef450a 100644
--- a/net/samba3/Makefile
+++ b/net/samba3/Makefile
@@ -96,7 +96,7 @@ post-install:
fi
${CHMOD} 700 ${SAMBA_PRIVATE}
if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \
- ${CAT} /etc/passwd | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \
+ ${CAT} /etc/passwd | ${GREP} -v "^#" | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \
${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd ; \
fi
${CHMOD} 500 ${SAMBA_PRIVATE}