Re: blkid: exit code as non-root user, and segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 10, 2012 at 09:58:34AM +0100, Bernhard Voelker wrote:
> 
> On December 10, 2012 at 9:42 AM Karel Zak <kzak@xxxxxxxxxx> 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".

 copy & past bug

> It really exits 0 here, when run as non-root user and when
> /dev/.blkid.tab doesn't exist yet.

Anyway, I have tested the problem as root. You're right it is
possible to reproduce as non-root. Sorry.

I'll fix it. 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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux