Whamcloud - gitweb
ChangeLog, ismounted.c:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 13 Jun 2001 23:26:19 +0000 (23:26 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Jun 2001 23:26:19 +0000 (23:26 +0000)
  ismounted.c (check_mntent_file): Work around GNU hurd brain damage.

lib/ext2fs/ChangeLog
lib/ext2fs/ismounted.c

index 2e7dd97..ef279a2 100644 (file)
@@ -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.
index 30b67d1..bf0c94e 100644 (file)
@@ -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;
        }