Blame SOURCES/autofs-5.1.7-fix-dangling-symlink-creation-if-nis-support-is-not-available.patch

96dc52
autofs-5.1.7 - fix dangling symlink creation if nis support is not available
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
If NIS support is not available a dangling symlink is created pointing
96dc52
from lookup_nis.so to (a non-existent) lookup_yp.so.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG        |    1 +
96dc52
 modules/Makefile |    2 ++
96dc52
 2 files changed, 3 insertions(+)
96dc52
96dc52
--- autofs-5.1.7.orig/CHANGELOG
96dc52
+++ autofs-5.1.7/CHANGELOG
96dc52
@@ -66,6 +66,7 @@
96dc52
 - refactor lookup_prune_one_cache() a bit.
96dc52
 - cater for empty mounts list in mnts_get_expire_list().
96dc52
 - add ext_mount_hash_mutex lock helpers.
96dc52
+- fix dangling symlink creation if nis support is not available.
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
--- autofs-5.1.7.orig/modules/Makefile
96dc52
+++ autofs-5.1.7/modules/Makefile
96dc52
@@ -77,7 +77,9 @@ install: all
96dc52
 	install -c $(MODS) -m 755 $(INSTALLROOT)$(autofslibdir)
96dc52
 	-rm -f $(INSTALLROOT)$(autofslibdir)/mount_smbfs.so
96dc52
 	ln -fs lookup_file.so $(INSTALLROOT)$(autofslibdir)/lookup_files.so
96dc52
+ifeq ($(YPCLNT), 1)
96dc52
 	ln -fs lookup_yp.so $(INSTALLROOT)$(autofslibdir)/lookup_nis.so
96dc52
+endif
96dc52
 ifeq ($(LDAP), 1)
96dc52
 	ln -fs lookup_ldap.so $(INSTALLROOT)$(autofslibdir)/lookup_ldaps.so
96dc52
 endif