summaryrefslogtreecommitdiff
path: root/lib/ext2fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-06-13 23:26:19 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-06-13 23:26:19 +0000
commit66a461469ccafd7aad2a824b0ab66fd9096d6e94 (patch)
tree3349d328ad24e910b66666b63f636718a6084d3e /lib/ext2fs
parent30ae14c9ded3c52e9fcf4869057cbc3b9927afb2 (diff)
downloade2fsprogs-66a461469ccafd7aad2a824b0ab66fd9096d6e94.tar.gz
ChangeLog, ismounted.c:
ismounted.c (check_mntent_file): Work around GNU hurd brain damage.
Diffstat (limited to 'lib/ext2fs')
-rw-r--r--lib/ext2fs/ChangeLog3
-rw-r--r--lib/ext2fs/ismounted.c2
2 files changed, 5 insertions, 0 deletions
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 <tytso@valinux.com>
+ * 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;
}