and abort if with an error if not, to prevent a seg fault
in that case.
+2005-05-05 Theodore Ts'o <tytso@mit.edu>
+
+ * debugfs.c (do_stat): Check to make sure a filesystem is open
+ and abort if with an error if not, to prevent a seg fault
+ in that case.
+
2005-03-21 Theodore Ts'o <tytso@mit.edu>
* Release of E2fsprogs 1.37
ext2_ino_t inode;
struct ext2_inode * inode_buf;
+ if (check_fs_open(argv[0]))
+ return 1;
+
inode_buf = (struct ext2_inode *)
malloc(EXT2_INODE_SIZE(current_fs->super));
if (!inode_buf) {