e2fsprogs/e2fsprogs-fdleak.patch
OBS User coolo 3606116ed1 converted link to branch
Rev filesystems/2 Md5 e7467e62eede21041556f5a29f1e0948 2010-02-19 15:16:28 coolo None
2010-02-19 15:16:28 +00:00

15 lines
453 B
Diff

diff --git a/misc/ismounted.c b/misc/ismounted.c
index 6d4b878..50b4140 100644
--- a/misc/ismounted.c
+++ b/misc/ismounted.c
@@ -86,9 +86,6 @@ static errcode_t check_mntent_file(const char *mtab_file, const char *file,
char buf[1024], *device = 0, *mnt_dir = 0, *cp;
*mount_flags = 0;
- if ((f = fopen(mtab_file, "r")) == NULL)
- return errno;
-
if ((f = setmntent (mtab_file, "r")) == NULL)
return errno;
if (stat(file, &st_buf) == 0) {