From: Bernhard Voelker <mail@bernhard-voelker.de>
To: Karel Zak <kzak@redhat.com>
Cc: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: Re: blkid: exit code as non-root user, and segfault
Date: Mon, 10 Dec 2012 09:58:34 +0100 (CET) [thread overview]
Message-ID: <1203571747.166876.1355129914909.JavaMail.open-xchange@email.1und1.de> (raw)
In-Reply-To: <20121210084250.GA21405@x2.net.home>
On December 10, 2012 at 9:42 AM Karel Zak <kzak@redhat.com> wrote:
> On Sun, Dec 09, 2012 at 06:52:29PM +0100, Bernhard Voelker wrote:
> > blkid returns 0 without output when running as non-root user
> > and when the cache /dev/.blkid.tab is not yet there:
> >
> > ./blkid /dev/sdb3 ; echo $?
> > 0
>
> ./blkid /dev/sdb3; echo $?2
> 2
Typo? "$?2" should lead to "02".
It really exits 0 here, when run as non-root user and when
/dev/.blkid.tab doesn't exist yet.
> > And another issue: blkid segfaults with this - okay, bad use of options:
> >
> > ./blkid -n /dev/sdb3
> > Segmentation fault
>
> Fixed by:
...
> > Using latest git; it doesn't dump core with 2.20.1.
>
> Really latest? ;-)
Yes, now (forgot make after pull, sorry) ;-)
Ok, that means the segfault is fixed, but the above
issue is still there.
Have a nice day,
Berny
next prev parent reply other threads:[~2012-12-10 8:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-09 17:52 blkid: exit code as non-root user, and segfault Bernhard Voelker
2012-12-10 8:42 ` Karel Zak
2012-12-10 8:58 ` Bernhard Voelker [this message]
2012-12-10 9:11 ` Karel Zak
2012-12-10 11:49 ` 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=1203571747.166876.1355129914909.JavaMail.open-xchange@email.1und1.de \
--to=mail@bernhard-voelker.de \
--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