git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nilfs2: fix missing zero-fill initialization of btree node cache
[safe/jmp/linux-2.6]
/
fs
/
open.c
diff --git
a/fs/open.c
b/fs/open.c
index
40d1fa2
..
4f01e06
100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-290,10
+290,9
@@
out:
return error;
}
return error;
}
-SYSCALL_DEFINE2(truncate, const char __user *, path,
unsigned
long, length)
+SYSCALL_DEFINE2(truncate, const char __user *, path, long, length)
{
{
- /* on 32-bit boxen it will cut the range 2^31--2^32-1 off */
- return do_sys_truncate(path, (long)length);
+ return do_sys_truncate(path, length);
}
static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
}
static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
@@
-959,6
+958,8
@@
struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags,
int error;
struct file *f;
int error;
struct file *f;
+ validate_creds(cred);
+
/*
* We must always pass in a valid mount pointer. Historically
* callers got away with not passing it, but we must enforce this at
/*
* We must always pass in a valid mount pointer. Historically
* callers got away with not passing it, but we must enforce this at