On Mon, Jul 28, 2014 at 08:50:48PM +0200, Benno Schulenberg wrote: > > On Mon, Jul 28, 2014, at 13:12, Karel Zak wrote: > > I have no way how to to test it, but can you try the patch below? > > [...] > > > > + if (ur->get_permissions()) > > + return EX_NOPERM; > > + > > Yes, looks better now: > > $ ./hwclock --compare > hwclock: unable to get I/O port access: the iopl(3) call failed.: Operation not permitted > hwclock: Probably you need root privileges. Applied, thanks. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html