diff options
author | Theodore Ts'o <tytso@mit.edu> | 2001-12-24 09:40:00 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2001-12-24 09:40:00 -0500 |
commit | 6a525069a99787ef3ae1156f12230044b3568f4b (patch) | |
tree | f8a99078888367713bc23cd4cc0b530f4a480ec0 /lib/ext2fs/mkdir.c | |
parent | a8fd6e36b866f2cf14edaa19d452fa64bd0fba40 (diff) | |
download | e2fsprogs-6a525069a99787ef3ae1156f12230044b3568f4b.tar.gz |
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)
Diffstat (limited to 'lib/ext2fs/mkdir.c')
-rw-r--r-- | lib/ext2fs/mkdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/mkdir.c b/lib/ext2fs/mkdir.c index 15a6863f..98f04963 100644 --- a/lib/ext2fs/mkdir.c +++ b/lib/ext2fs/mkdir.c @@ -81,7 +81,7 @@ errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum, * Create the inode structure.... */ memset(&inode, 0, sizeof(struct ext2_inode)); - inode.i_mode = LINUX_S_IFDIR | 0755; + inode.i_mode = LINUX_S_IFDIR | (0777 & ~fs->umask); inode.i_uid = inode.i_gid = 0; inode.i_blocks = fs->blocksize / 512; inode.i_block[0] = blk; |