diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-09-03 13:55:16 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-09-03 13:55:16 +0000 |
commit | 7b770b7d2607eea3720b4a0725a93ed29655814c (patch) | |
tree | 9446d132f181225daf2bfdd0d36c48312c7fa1de | |
parent | 303db555c98f00365cabcb35d999d28de1d98196 (diff) | |
download | FreeBSD-ports-7b770b7d2607eea3720b4a0725a93ed29655814c.zip FreeBSD-ports-7b770b7d2607eea3720b4a0725a93ed29655814c.tar.gz |
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)
-rw-r--r-- | net/samba-devel/Makefile | 2 | ||||
-rw-r--r-- | net/samba3/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/samba-devel/Makefile b/net/samba-devel/Makefile index a7ba0a4..5080bde 100644 --- a/net/samba-devel/Makefile +++ b/net/samba-devel/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} diff --git a/net/samba3/Makefile b/net/samba3/Makefile index a7ba0a4..5080bde 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} |