patch-2.1.132 linux/fs/affs/inode.c

Next file: linux/fs/affs/namei.c
Previous file: linux/fs/ChangeLog
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/fs/affs/inode.c linux/fs/affs/inode.c
@@ -170,8 +170,11 @@
 		} else {
 			inode->i_op = &affs_file_inode_operations;
 		}
-	} else if (S_ISDIR(inode->i_mode))
+	} else if (S_ISDIR(inode->i_mode)) {
+		/* Maybe it should be controlled by mount parameter? */
+		inode->i_mode |= S_ISVTX;
 		inode->i_op = &affs_dir_inode_operations;
+	}
 	else if (S_ISLNK(inode->i_mode))
 		inode->i_op = &affs_symlink_inode_operations;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov