[PATCH 21/34] autofs-5.1.2 - fix bogus check in expire_cleanup()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ap->submount can never be 0 here.

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG      |    1 +
 daemon/state.c |    4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 9248bb9..eaff2de 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -47,6 +47,7 @@ xx/xx/2016 autofs-5.1.3
 - capture cache option and its settings during parsing.
 - handle map_option cache for top level mounts.
 - handle amd cache option all in amd type auto mounts.
+- fix bogus check in expire_cleanup().
 
 15/06/2016 autofs-5.1.2
 =======================
diff --git a/daemon/state.c b/daemon/state.c
index 5d81438..41a5f6a 100644
--- a/daemon/state.c
+++ b/daemon/state.c
@@ -139,9 +139,7 @@ void expire_cleanup(void *arg)
 					next = ST_SHUTDOWN_PENDING;
 					break;
 				}
-
-				if (ap->submount++ == 0)
-					ap->submount = 2;
+				ap->submount++;
 			}
 
 			if (ap->state == ST_EXPIRE && !ap->submount)

--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux