diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-03-06 00:03:34 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-03-06 00:03:34 +0800 |
commit | 2faecac65d7876a2e2310de542b6d373240b409b (patch) | |
tree | 5526a3543ed1009cb5c1d1394c0c4c26f5f5ebfa /net/samba/Makefile | |
parent | a4ce4c041f756b76868316647da37bd66aba4a60 (diff) | |
download | freebsd-ports-gnome-2faecac65d7876a2e2310de542b6d373240b409b.tar.gz freebsd-ports-gnome-2faecac65d7876a2e2310de542b6d373240b409b.tar.zst freebsd-ports-gnome-2faecac65d7876a2e2310de542b6d373240b409b.zip |
When converting /etc/passwd, skip comments ($FreeBSD$ line).
Previously, they would end up in private/smbpasswd after being parsed as
users.
Diffstat (limited to 'net/samba/Makefile')
-rw-r--r-- | net/samba/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index d2d4aebe501e..8732a1a0cd6d 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -70,7 +70,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} |