patch-2.1.100 linux/drivers/acorn/block/fd1772.c
Next file: linux/drivers/acorn/block/mfmhd.c
Previous file: linux/arch/sparc64/solaris/fs.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/drivers/acorn/block/fd1772.c
- Orig date:
Tue Mar 10 10:03:31 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/acorn/block/fd1772.c linux/drivers/acorn/block/fd1772.c
@@ -1368,7 +1368,7 @@
case FDFLUSH:
return invalidate_drive(drive);
}
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EPERM;
if (drive < 0 || drive > 3)
return -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov