patch-2.1.100 linux/fs/buffer.c
Next file: linux/fs/coda/Makefile
Previous file: linux/fs/autofs/root.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed May  6 10:56:05 1998
-  Orig file: 
v2.1.99/linux/fs/buffer.c
-  Orig date: 
Wed Apr  8 19:36:28 1998
diff -u --recursive --new-file v2.1.99/linux/fs/buffer.c linux/fs/buffer.c
@@ -1871,7 +1871,7 @@
 	int i, error = -EPERM;
 
 	lock_kernel();
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		goto out;
 
 	if (func == 1) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov