e2fsprogs/debugfs
Andreas Dilger 9d8cd8c461 debugfs: fix filehandle leak in copy_file()
Fix a file handle leak for the target file in copy_file() when error
handlers return without closing the file.  Instead, clean up at the
end of the function to handle cleanup in normal and error cases.

Minor other code style cleanups.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-05-22 17:54:36 -04:00
..
Makefile.in debugfs: add commands to query the quota information 2014-05-13 10:13:19 -04:00
debug_cmds.ct debugfs: add commands to query the quota information 2014-05-13 10:13:19 -04:00
debugfs.8.in debugfs: document the lsdel command in the man page 2013-12-28 22:15:59 -05:00
debugfs.c debugfs: fix filehandle leak in copy_file() 2014-05-22 17:54:36 -04:00
debugfs.h debugfs: add commands to query the quota information 2014-05-13 10:13:19 -04:00
dump.c debugfs: don't leak fd when calling dump_file 2013-12-12 12:51:01 -05:00
extent_cmds.ct debugfs: add the ability to manipulate the extent tree directly 2012-12-24 10:49:41 -05:00
extent_inode.c debugfs: restore and tweak original error messaging 2013-12-30 16:56:19 -05:00
filefrag.c debugfs: update usage message for open and filefrag 2013-12-08 21:06:40 -05:00
htree.c Fix gcc -Wall nits 2013-01-01 13:28:27 -05:00
icheck.c debugfs: restore and tweak original error messaging 2013-12-30 16:56:19 -05:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
logdump.c debugfs: clean up read_journal_block() to avoid Coverity complaint 2014-01-04 19:11:37 -05:00
ls.c debugfs: initialize inode to 0 in list_dir_proc() if no inode nr 2011-09-25 01:55:28 -04:00
lsdel.c debugfs: clean up debugfs man page and help text 2013-12-15 22:13:15 -05:00
ncheck.c debugfs: fix spelling typo in ncheck 2012-01-23 11:33:33 -05:00
quota.c debugfs: add commands to query the quota information 2014-05-13 10:13:19 -04:00
ro_debug_cmds.ct debugfs: add commands to query the quota information 2014-05-13 10:13:19 -04:00
set_fields.c Add support for new compat feature "sparse_super2" 2014-01-30 13:58:18 -05:00
unused.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
util.c debugfs: fix string_to_time for MacOS strptime() 2014-05-22 17:52:23 -04:00
zap.c debugfs: clean up debugfs man page and help text 2013-12-15 22:13:15 -05:00