Blame SOURCES/quota-4.04-convertquota-Fix-a-file-descriptor-leak-in-convert_e.patch

273bc0
From 78403029375dbfe809b5b1034301dc687a94397f Mon Sep 17 00:00:00 2001
273bc0
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
273bc0
Date: Thu, 23 Aug 2018 11:09:10 +0200
273bc0
Subject: [PATCH 1/3] convertquota: Fix a file descriptor leak in
273bc0
 convert_endian()
273bc0
MIME-Version: 1.0
273bc0
Content-Type: text/plain; charset=UTF-8
273bc0
Content-Transfer-Encoding: 8bit
273bc0
273bc0
Signed-off-by: Petr Písař <ppisar@redhat.com>
273bc0
---
273bc0
 convertquota.c | 1 +
273bc0
 1 file changed, 1 insertion(+)
273bc0
273bc0
diff --git a/convertquota.c b/convertquota.c
273bc0
index d913e05..6c8a553 100644
273bc0
--- a/convertquota.c
273bc0
+++ b/convertquota.c
273bc0
@@ -363,6 +363,7 @@ static int convert_endian(int type, struct mount_entry *mnt)
273bc0
 	}
273bc0
 	ret = endian_scan_structures(ofd, type);
273bc0
 	end_io(qn);
273bc0
+	close(ofd);
273bc0
 	if (ret < 0)
273bc0
 		return ret;
273bc0
 	
273bc0
-- 
273bc0
2.14.4
273bc0