patch-2.1.100 linux/drivers/block/md.c
Next file: linux/drivers/block/nbd.c
Previous file: linux/drivers/block/loop.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/block/md.c
- Orig date:
Wed Apr 1 20:11:48 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -622,7 +622,7 @@
int minor, err;
struct hd_geometry *loc = (struct hd_geometry *) arg;
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EACCES;
if (((minor=MINOR(inode->i_rdev)) & 0x80) &&
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov