Ian Kent 62ad96
autofs-5.0.3 - check for kernel automount fix
Ian Kent 62ad96
Ian Kent 62ad96
From: Ian Kent <raven@themaw.net>
Ian Kent 62ad96
Ian Kent 62ad96
Look in the correct mount table for kernel automounted "nohide"
Ian Kent 62ad96
mounts.
Ian Kent 62ad96
---
Ian Kent 62ad96
Ian Kent 62ad96
 daemon/direct.c |    2 +-
Ian Kent 62ad96
 1 files changed, 1 insertions(+), 1 deletions(-)
Ian Kent 62ad96
Ian Kent 62ad96
Ian Kent 62ad96
diff --git a/daemon/direct.c b/daemon/direct.c
Ian Kent 62ad96
index afb354e..13f572c 100644
Ian Kent 62ad96
--- a/daemon/direct.c
Ian Kent 62ad96
+++ b/daemon/direct.c
Ian Kent 62ad96
@@ -709,7 +709,7 @@ int mount_autofs_offset(struct autofs_point *ap, struct mapent *me, const char *
Ian Kent 62ad96
 			 * the kernel NFS client.
Ian Kent 62ad96
 			 */
Ian Kent 62ad96
 			if (me->multi != me &&
Ian Kent 62ad96
-			    is_mounted(_PATH_MOUNTED, mountpoint, MNTS_REAL))
Ian Kent 62ad96
+			    is_mounted(_PROC_MOUNTS, mountpoint, MNTS_REAL))
Ian Kent 62ad96
 				return MOUNT_OFFSET_IGNORE;
Ian Kent 62ad96
 
Ian Kent 62ad96
 			/*