patch-2.1.100 linux/drivers/isdn/avmb1/capi.c
Next file: linux/drivers/macintosh/macserial.c
Previous file: linux/drivers/char/vt.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:04 1998
- Orig file:
v2.1.99/linux/drivers/isdn/avmb1/capi.c
- Orig date:
Wed Apr 1 20:11:49 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/isdn/avmb1/capi.c linux/drivers/isdn/avmb1/capi.c
@@ -384,7 +384,7 @@
struct capi_manufacturer_cmd mcmd;
if (minor)
return -EINVAL;
- if (!suser())
+ if (!capable(CAP_SYS_ADMIN))
return -EPERM;
retval = copy_from_user((void *) &mcmd, (void *) arg,
sizeof(mcmd));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov