patch-1.3.4 linux/fs/open.c

Next file: linux/fs/pipe.c
Previous file: linux/fs/nfs/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/fs/open.c linux/fs/open.c
@@ -157,8 +157,8 @@
 			iput(inode);
 			return error;
 		}
-		actime = get_fs_long((unsigned long *) &times->actime);
-		modtime = get_fs_long((unsigned long *) &times->modtime);
+		actime = get_user(&times->actime);
+		modtime = get_user(&times->modtime);
 		newattrs.ia_ctime = CURRENT_TIME;
 		flags = ATTR_ATIME_SET | ATTR_MTIME_SET;
 	} else {

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