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

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