aboutsummaryrefslogtreecommitdiffstats
path: root/fs/utimes.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:14:21 -0500
committerHeiko Carstens <heiko.carstens@de.ibm.com>2009-01-14 08:15:26 -0500
commit003d7ab479168132a2b2c6700fe682b08f08ab0c (patch)
treee9f51f17949cabab6324ee1415a55e350334c841 /fs/utimes.c
parenta6b42e83f249aad723589b2bdf6d1dfb2b0997c8 (diff)
[CVE-2009-0029] System call wrappers part 19
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'fs/utimes.c')
-rw-r--r--fs/utimes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/utimes.c b/fs/utimes.c
index 6929e3e91d05..ee853615798a 100644
--- a/fs/utimes.c
+++ b/fs/utimes.c
@@ -24,7 +24,7 @@
24 * must be owner or have write permission. 24 * must be owner or have write permission.
25 * Else, update from *times, must be owner or super user. 25 * Else, update from *times, must be owner or super user.
26 */ 26 */
27asmlinkage long sys_utime(char __user *filename, struct utimbuf __user *times) 27SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times)
28{ 28{
29 struct timespec tv[2]; 29 struct timespec tv[2];
30 30
@@ -214,7 +214,8 @@ asmlinkage long sys_futimesat(int dfd, char __user *filename, struct timeval __u
214 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); 214 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0);
215} 215}
216 216
217asmlinkage long sys_utimes(char __user *filename, struct timeval __user *utimes) 217SYSCALL_DEFINE2(utimes, char __user *, filename,
218 struct timeval __user *, utimes)
218{ 219{
219 return sys_futimesat(AT_FDCWD, filename, utimes); 220 return sys_futimesat(AT_FDCWD, filename, utimes);
220} 221}