autofs/autofs-5.0.3-check-for-kernel-automount-fix.patch
Ian Kent 50a4d88ce0 - add upstream bug fixes
- bug fix for mtab check.
- bug fix for zero length nis key.
- update for ifc buffer handling.
- bug fix for kernel automount handling.
- warning: I found a bunch of patches that were present but not being
    applied.
2008-09-19 09:00:03 +00:00

26 lines
683 B
Diff

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