From 66a461469ccafd7aad2a824b0ab66fd9096d6e94 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 13 Jun 2001 23:26:19 +0000 Subject: [PATCH] ChangeLog, ismounted.c: ismounted.c (check_mntent_file): Work around GNU hurd brain damage. --- lib/ext2fs/ChangeLog | 3 +++ lib/ext2fs/ismounted.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 2e7dd974..ef279a26 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,5 +1,8 @@ 2001-06-13 Theodore Tso + * ismounted.c (check_mntent_file): Work around GNU hurd brain + damage. + * Makefile.in: Limit some .o files from being included into the library if --disable-debugfs, --disable-swapfs, --disable-imager, or --disable-resizer are used. diff --git a/lib/ext2fs/ismounted.c b/lib/ext2fs/ismounted.c index 30b67d13..bf0c94e1 100644 --- a/lib/ext2fs/ismounted.c +++ b/lib/ext2fs/ismounted.c @@ -55,6 +55,7 @@ static errcode_t check_mntent_file(const char *mtab_file, const char *file, break; if (mnt == 0) { +#ifndef __GNU__ /* The GNU hurd is broken with respect to stat devices */ struct stat st_root, st_file; /* * Do an extra check to see if this is the root device. We @@ -71,6 +72,7 @@ static errcode_t check_mntent_file(const char *mtab_file, const char *file, goto is_root; } } +#endif endmntent (f); return 0; }