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

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