Two bug fixes to debugfs, courtesy of Jaroslav Drzik <jdrzik@host.sk> for suggesting this enh ancement.
1) The modify_inode command was core dumping if no filesystem was open.
2) The lsdel command command now uses the pager.
Also updated the Makefile.in file with "make depend".
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index c735337..ed4f23b 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -686,7 +686,7 @@
int i;
unsigned char *frag, *fsize;
char buf[80];
- int os = current_fs->super->s_creator_os;
+ int os;
const char *hex_format = "0x%x";
const char *octal_format = "0%o";
const char *decimal_format = "%d";
@@ -694,6 +694,8 @@
if (common_inode_args_process(argc, argv, &inode_num, CHECK_FS_RW))
return;
+ os = current_fs->super->s_creator_os;
+
if (debugfs_read_inode(inode_num, &inode, argv[1]))
return;