patch-2.1.100 linux/arch/sparc64/solaris/fs.c
Next file: linux/drivers/acorn/block/fd1772.c
Previous file: linux/arch/sparc64/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:02 1998
- Orig file:
v2.1.99/linux/arch/sparc64/solaris/fs.c
- Orig date:
Thu Apr 23 20:21:32 1998
diff -u --recursive --new-file v2.1.99/linux/arch/sparc64/solaris/fs.c linux/arch/sparc64/solaris/fs.c
@@ -464,7 +464,7 @@
val <<= 9;
lock_kernel();
if (val > current->rlim[RLIMIT_FSIZE].rlim_max) {
- if (!suser()) {
+ if (!capable(CAP_SYS_RESOURCE)) {
unlock_kernel();
return -EPERM;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov