]> err.no Git - util-linux/commit
fsck.minix: fix broken zone checking
authorKarel Zak <kzak@redhat.com>
Thu, 15 Oct 2009 12:14:32 +0000 (14:14 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Nov 2009 15:23:17 +0000 (16:23 +0100)
commitae3a2071fbb133f866154f0410bd32a6d8ca81a2
treeaa84892496ef39bc134f614ffedc24990d866f1a
parent583f03f77a3d85380b801960b0458fe75d477468
fsck.minix: fix broken zone checking

This bug has been introduced by commit
95356e8b744439336925eeb36f01399f1ee8a5e9.

The fsck.minix code assumes that isset() macro returns boolean,
unfortunately the generic implementation from libc returns integer.

This patch also add a fallback for the bitmap macros to include/bitops.h.

Reported-by: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.minix.c
disk-utils/mkfs.minix.c
include/bitops.h