From 7b770b7d2607eea3720b4a0725a93ed29655814c Mon Sep 17 00:00:00 2001 From: olgeni Date: Mon, 3 Sep 2001 13:55:16 +0000 Subject: 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) --- net/samba-devel/Makefile | 2 +- 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} -- cgit v1.1