From b78ceb0a580b30085c964f5113ced96c7f2810f5 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 15 Feb 2015 18:02:05 +0000 Subject: [PATCH] Mismatch in r278804. --- lib/libc/gen/getgrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 43574e7dcf14..63bc502ef491 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -1450,7 +1450,7 @@ docompat: pos = ftello(st->fp); } fin: - if (st->fp != NULL || !stayopen) { + if (st->fp != NULL && !stayopen) { fclose(st->fp); st->fp = NULL; }