patch-1.3.48 linux/fs/msdos/inode.c

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

diff -u --recursive --new-file v1.3.47/linux/fs/msdos/inode.c linux/fs/msdos/inode.c
@@ -81,7 +81,9 @@
 
 	*check = 'n';
 	*conversion = 'b';
-	*dotsOK =0;
+	/* Please leave dotsOK as 1, and contact Albert Cahalan if */
+	/* it causes any problems for you. <albert@ccs.neu.edu>    */
+	*dotsOK =1;  /* see note above, and report problems */
 	*uid = current->uid;
 	*gid = current->gid;
 	*umask = current->fs->umask;
@@ -427,6 +429,8 @@
 		inode->i_nlink = 1;
 		inode->i_size = CF_LE_L(raw_entry->size);
 	}
+	if(raw_entry->attr & ATTR_SYS)
+		inode->i_flags |= S_IMMUTABLE;
 	MSDOS_I(inode)->i_binary = is_binary(MSDOS_SB(inode->i_sb)->conversion,
 	    raw_entry->ext);
 	MSDOS_I(inode)->i_attrs = raw_entry->attr & ATTR_UNUSED;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this