Blame SOURCES/autofs-5.0.7-fix-incorrect-check-in-flag_is_owned.patch

ab3a3d
autofs-5.0.7 - fix incorrect check in flag_is_owned()
ab3a3d
ab3a3d
From: Ian Kent <raven@themaw.net>
ab3a3d
ab3a3d
The flag file code isn't used any more but this is clearly incorrect
ab3a3d
so fix it in case it gets used sometime in the future.
ab3a3d
---
ab3a3d
 daemon/flag.c |    7 +++----
ab3a3d
 1 file changed, 3 insertions(+), 4 deletions(-)
ab3a3d
ab3a3d
diff --git a/daemon/flag.c b/daemon/flag.c
ab3a3d
index f8fe163..db9a4bd 100644
ab3a3d
--- a/daemon/flag.c
ab3a3d
+++ b/daemon/flag.c
ab3a3d
@@ -66,12 +66,11 @@ static int flag_is_owned(int fd)
ab3a3d
 
ab3a3d
 			continue;
ab3a3d
 		}
ab3a3d
-
ab3a3d
-		/* Stale flagfile */
ab3a3d
-		if (!tries)
ab3a3d
-			return 0;
ab3a3d
 	}
ab3a3d
 
ab3a3d
+	/* Stale flagfile */
ab3a3d
+	if (!tries)
ab3a3d
+		return 0;
ab3a3d
 
ab3a3d
 	if (pid) {
ab3a3d
 		int ret;