public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@justemail.net>
To: Karel Zak <kzak@redhat.com>
Cc: kerolasa@gmail.com, "Util-Linux" <util-linux@vger.kernel.org>
Subject: Re: hwclock --compare segfaults when run as normal user
Date: Mon, 28 Jul 2014 20:50:48 +0200	[thread overview]
Message-ID: <1406573448.201539.146573889.3D4D553B@webmail.messagingengine.com> (raw)
In-Reply-To: <20140728111214.GI8533@x2.net.home>


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.

Benno

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free

  reply	other threads:[~2014-07-28 18:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-26 12:40 hwclock --compare segfaults when run as normal user Benno Schulenberg
2014-07-26 14:48 ` Sami Kerola
2014-07-26 16:05   ` Benno Schulenberg
2014-07-28 11:12     ` Karel Zak
2014-07-28 18:50       ` Benno Schulenberg [this message]
2014-07-29  6:27         ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406573448.201539.146573889.3D4D553B@webmail.messagingengine.com \
    --to=bensberg@justemail.net \
    --cc=kerolasa@gmail.com \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox