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

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