Blame SOURCES/autofs-5.1.2-fix-count_mounts-function.patch

304803
autofs-5.1.2 - fix count_mounts() function
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
count_mounts() gets the number of mounts wrong, make it include the
304803
base directory also.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG          |    1 +
304803
 daemon/automount.c |    2 +-
304803
 2 files changed, 2 insertions(+), 1 deletion(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -219,6 +219,7 @@
304803
 - honor last rw in mount options when doing a bind mount.
304803
 - update and add README for old autofs schema.
304803
 - fix short memory allocation in lookup_amd_instance().
304803
+- fix count_mounts() function.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/daemon/automount.c
304803
+++ autofs-5.0.7/daemon/automount.c
304803
@@ -392,7 +392,7 @@ int count_mounts(struct autofs_point *ap
304803
 	counter.count = 0;
304803
 	counter.dev = dev;
304803
 	
304803
-	if (walk_tree(path, counter_fn, 0, ap, &counter) == -1)
304803
+	if (walk_tree(path, counter_fn, 1, ap, &counter) == -1)
304803
 		return -1;
304803
 
304803
 	return counter.count;