Whamcloud - gitweb
debugfs: add matching fclose
authorPeng Tao <bergwolf@gmail.com>
Mon, 28 Sep 2009 10:51:53 +0000 (18:51 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 4 Oct 2009 02:30:37 +0000 (22:30 -0400)
commit2d7ef236b752c1da7868f009018075fddc01d810
tree846d382687c67c13ceaa8708dc2a22bdfe46eb92
parent484ddc8767ab30ac43a444a2a40de61b99c91eb1
debugfs: add matching fclose

If the cmd_file is not stdin, we should close the file handle via fclose().
Thanks David Binderman to point this out.

Addresses-Novell-Bugzilla: #524526

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c