You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
769 B
30 lines
769 B
3 years ago
|
From 78403029375dbfe809b5b1034301dc687a94397f Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||
|
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ř <ppisar@redhat.com>
|
||
|
---
|
||
|
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
|
||
|
|