forked from pool/e2fsprogs
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) {
|