Blame SOURCES/autofs-5.1.2-fix-bogus-check-in-expire_cleanup.patch

304803
autofs-5.1.2 - fix bogus check in expire_cleanup()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
ap->submount can never be 0 here.
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG      |    1 +
304803
 daemon/state.c |    4 +---
304803
 2 files changed, 2 insertions(+), 3 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -233,6 +233,7 @@
304803
 - capture cache option and its settings during parsing.
304803
 - handle map_option cache for top level mounts.
304803
 - handle amd cache option all in amd type auto mounts.
304803
+- fix bogus check in expire_cleanup().
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/daemon/state.c
304803
+++ autofs-5.0.7/daemon/state.c
304803
@@ -139,9 +139,7 @@ void expire_cleanup(void *arg)
304803
 					next = ST_SHUTDOWN_PENDING;
304803
 					break;
304803
 				}
304803
-
304803
-				if (ap->submount++ == 0)
304803
-					ap->submount = 2;
304803
+				ap->submount++;
304803
 			}
304803
 
304803
 			if (ap->state == ST_EXPIRE && !ap->submount)