nsswitch.conf <-> WITHOUT_NIS

Ed Schouten ed at 80386.nl
Thu Aug 4 18:57:07 UTC 2011


* Ed Schouten <ed at 80386.nl>, 20110804 19:30:
> But on the other hand, nsswitch.conf says it will default to `nis'
> anyway. So I suspect the lines shouldn't be removed, but changed to
> `files', right? Maybe we should consider modifying the configuration
> file accordingly?

After reading some more manpages and doing some testing, it seems we
must remove the _compat: lines and change the compat source to files.
Any comments on the following patch?

--- etc/Makefile
+++ etc/Makefile
@@ -256,6 +256,10 @@ distribution:
 	    ${DESTDIR}/boot/device.hints
 .endif
 .endif
+.if ${MK_NIS} == "no"
+	sed -i "" -e '/_compat:/d' -e 's/compat/files/' \
+		${DESTDIR}/etc/nsswitch.conf
+.endif
 
 distrib-dirs:
 	mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20110804/43f96570/attachment.pgp


More information about the freebsd-current mailing list