fc629f8a36
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
15 lines
453 B
Diff
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) {
|