aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba3
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-09-03 21:55:16 +0800
committerolgeni <olgeni@FreeBSD.org>2001-09-03 21:55:16 +0800
commit7b770b7d2607eea3720b4a0725a93ed29655814c (patch)
tree9446d132f181225daf2bfdd0d36c48312c7fa1de /net/samba3
parent303db555c98f00365cabcb35d999d28de1d98196 (diff)
downloadfreebsd-ports-gnome-7b770b7d2607eea3720b4a0725a93ed29655814c.tar.gz
freebsd-ports-gnome-7b770b7d2607eea3720b4a0725a93ed29655814c.tar.zst
freebsd-ports-gnome-7b770b7d2607eea3720b4a0725a93ed29655814c.zip
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)
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}