Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f13d6
)
fix fd leak that causes fsck to fail with "too many open files"
author
Cristian Rodríguez
<crrodriguez@opensuse.org>
Fri, 2 Oct 2009 13:24:11 +0000
(09:24 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 3 Oct 2009 17:38:47 +0000
(13:38 -0400)
fsck leaks fds when invoked with -R -A -M -a -t noopts=nofail
Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/ismounted.c
patch
|
blob
|
history
diff --git
a/misc/ismounted.c
b/misc/ismounted.c
index
6d4b878
..
50b4140
100644
(file)
--- 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) {