patch-2.1.100 linux/drivers/block/nbd.c
Next file: linux/drivers/block/ns87415.c
Previous file: linux/drivers/block/md.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/nbd.c
- Orig date:
Wed Apr 1 20:11:48 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -316,7 +316,7 @@
struct nbd_device *lo;
int dev, error;
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EPERM;
if (!inode)
return -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov