patch-2.1.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
- Lines: 20
- Date:
Sun Oct 13 21:11:19 1996
- Orig file:
v2.1.3/linux/fs/open.c
- Orig date:
Wed Oct 9 08:55:22 1996
diff -u --recursive --new-file v2.1.3/linux/fs/open.c linux/fs/open.c
@@ -181,8 +181,8 @@
iput(inode);
return error;
}
- newattrs.ia_atime = get_user(×->actime);
- newattrs.ia_mtime = get_user(×->modtime);
+ get_user(newattrs.ia_atime, ×->actime);
+ get_user(newattrs.ia_mtime, ×->modtime);
newattrs.ia_valid |= ATTR_ATIME_SET | ATTR_MTIME_SET;
} else {
if (current->fsuid != inode->i_uid &&
@@ -224,7 +224,7 @@
iput(inode);
return error;
}
- memcpy_fromfs(×, utimes, sizeof(times));
+ copy_from_user(×, utimes, sizeof(times));
newattrs.ia_atime = times[0].tv_sec;
newattrs.ia_mtime = times[1].tv_sec;
newattrs.ia_valid |= ATTR_ATIME_SET | ATTR_MTIME_SET;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov