ChangeLog, ismounted.c:

ismounted.c (check_mntent_file): Work around GNU hurd brain damage.
bitmap-optimize
Theodore Ts'o 2001-06-13 23:26:19 +00:00
parent 30ae14c9de
commit 66a461469c
2 changed files with 5 additions and 0 deletions

View 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.

View 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;
}