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.
29 lines
852 B
29 lines
852 B
From 0f255ef2570478a855361937445a57a168c8629d 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:23:43 +0200
|
|
Subject: [PATCH 2/3] quotackeck: Fix a directory descriptor leak in scan_dir()
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
---
|
|
quotacheck.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/quotacheck.c b/quotacheck.c
|
|
index fd01dfc..2cdf475 100644
|
|
--- a/quotacheck.c
|
|
+++ b/quotacheck.c
|
|
@@ -538,6 +538,7 @@ static int scan_dir(const char *pathname)
|
|
if ((lstat(de->d_name, &st)) == -1) {
|
|
errstr(_("lstat: Cannot stat `%s/%s': %s\nGuess you'd better run fsck first !\nexiting...\n"),
|
|
pathname, de->d_name, strerror(errno));
|
|
+ closedir(dp);
|
|
goto out;
|
|
}
|
|
|
|
--
|
|
2.14.4
|
|
|