patch-2.1.100 linux/drivers/sbus/char/vfc_dev.c
Next file: linux/drivers/sbus/char/zs.c
Previous file: linux/drivers/sbus/char/rtc.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/sbus/char/vfc_dev.c
- Orig date:
Thu Apr 23 20:21:34 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
@@ -205,7 +205,7 @@
unsigned char *buffer;
int ret;
- if(!suser()) return -EPERM;
+ if(!capable(CAP_SYS_ADMIN)) return -EPERM;
switch(cmd) {
case VFC_I2C_SEND:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov