Mke2fs now creates the lost+found directory with 0700 permissions,
since files which get dropped into that directory may have come
from a protected directory, and the system administrator may not
deal with immediately. (Addresses Debian bug #118443)
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index d60e28e..92f3463 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -493,6 +493,7 @@
int i;
int lpf_size = 0;
+ fs->umask = 077;
retval = ext2fs_mkdir(fs, EXT2_ROOT_INO, 0, name);
if (retval) {
com_err("ext2fs_mkdir", retval,
@@ -516,7 +517,7 @@
_("while expanding /lost+found"));
exit(1);
}
- }
+ }
}
static void create_bad_block_inode(ext2_filsys fs, badblocks_list bb_list)