aboutsummaryrefslogtreecommitdiff
path: root/debugfs/htree.c
diff options
context:
space:
mode:
Diffstat (limited to 'debugfs/htree.c')
-rw-r--r--debugfs/htree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/debugfs/htree.c b/debugfs/htree.c
index d0e673eb..a46bae77 100644
--- a/debugfs/htree.c
+++ b/debugfs/htree.c
@@ -347,7 +347,8 @@ void do_dirsearch(int argc, char *argv[])
pb.search_name = argv[2];
pb.len = strlen(pb.search_name);
- ext2fs_block_iterate2(current_fs, inode, 0, 0, search_dir_block, &pb);
+ ext2fs_block_iterate2(current_fs, inode, BLOCK_FLAG_READ_ONLY, 0,
+ search_dir_block, &pb);
free(pb.buf);
}