patch-2.1.100 linux/drivers/char/stallion.c
Next file: linux/drivers/char/vt.c
Previous file: linux/drivers/char/specialix.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:03 1998
- Orig file:
v2.1.99/linux/drivers/char/stallion.c
- Orig date:
Mon Apr 6 17:40:59 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/char/stallion.c linux/drivers/char/stallion.c
@@ -1338,7 +1338,7 @@
#endif
copy_from_user(&sio, sp, sizeof(struct serial_struct));
- if (!suser()) {
+ if (!capable(CAP_SYS_ADMIN)) {
if ((sio.baud_base != portp->baud_base) ||
(sio.close_delay != portp->close_delay) ||
((sio.flags & ~ASYNC_USR_MASK) !=
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov