patch-2.0.21 linux/fs/ext2/namei.c
Next file: linux/fs/locks.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Sep 20 13:17:18 1996
- Orig file:
v2.0.20/linux/fs/ext2/namei.c
- Orig date:
Wed Jul 10 13:11:15 1996
diff -u --recursive --new-file v2.0.20/linux/fs/ext2/namei.c linux/fs/ext2/namei.c
@@ -519,7 +519,7 @@
inode->i_nlink = 2;
mark_buffer_dirty(dir_block, 1);
brelse (dir_block);
- inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask);
+ inode->i_mode = S_IFDIR | (mode & (S_IRWXUGO|S_ISVTX) & ~current->fs->umask);
if (dir->i_mode & S_ISGID)
inode->i_mode |= S_ISGID;
inode->i_dirt = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov