Re: [PATCH] Correct the return values in squashfs probe

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

 



On Mon, Jun 23, 2014 at 01:41:48PM -0400, David Shea wrote:
>  libblkid/src/superblocks/squashfs.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

 Applied, thanks.

>  	sq = blkid_probe_get_sb(pr, mag, struct sqsh_super_block);
>  	if (!sq)
> -		return -1;
> +		return 1;

 Note that the current libblkid code is sensitive to IO errors, so the
 correct changes is

        return errno ? -errno : 1;


  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