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