patch-2.4.3 linux/drivers/sbus/char/vfc_dev.c
Next file: linux/drivers/sbus/sbus.c
Previous file: linux/drivers/sbus/char/sunserial.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue Mar 6 22:44:16 2001
- Orig file:
v2.4.2/linux/drivers/sbus/char/vfc_dev.c
- Orig date:
Wed Feb 21 18:20:31 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
@@ -362,7 +362,7 @@
vfc_capture_poll(dev);
break;
case DIAGMODE:
- if(suser()) {
+ if(capable(CAP_SYS_ADMIN)) {
vfc_lock_device(dev);
dev->control_reg |= VFC_CONTROL_DIAGMODE;
sbus_writel(dev->control_reg, &dev->regs->control);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)