e2fsprogs/e2fsprogs-fdleak.patch
OBS User autobuild fc629f8a36 Accepting request 26180 from Base:System
Copy from Base:System/e2fsprogs based on submit request 26180 from user michal-m

OBS-URL: https://build.opensuse.org/request/show/26180
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/e2fsprogs?expand=0&rev=50
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) {