]> 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>
Thu, 15 Oct 2009 12:14:32 +0000 (14:14 +0200)
commite98754d6bbd277902f4e5e8190b29ece5d4376ec
treeea79a5fc2c0ba655c78fda16b76fc4f0c8130c26
parented98508a1cf5ebe67948b6c2ec7a65f4ddd110f8
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