e2fsprogs/e2fsprogs-fdleak.patch
OBS User autobuild 1f512efd76 Copy from Base:System/e2fsprogs based on submit request 26180 from user michal-m
Rev openSUSE:Factory/50 Md5 9d536b79b6f871ed112bc1ff4d7dce3c 2009-12-11 12:01:57 autobuild None
2009-12-11 12:01:57 +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) {