patch-2.1.100 linux/drivers/sbus/char/rtc.c
Next file: linux/drivers/sbus/char/vfc_dev.c
Previous file: linux/drivers/pci/quirks.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/rtc.c
- Orig date:
Mon Jan 12 15:15:45 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/sbus/char/rtc.c linux/drivers/sbus/char/rtc.c
@@ -91,7 +91,7 @@
case RTCSET:
- if (!suser())
+ if (!capable(CAP_SYS_TIME))
return -EPERM;
copy_from_user_ret(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time), -EFAULT);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov