mirror of https://github.com/vitalif/e2fsprogs
ChangeLog, ismounted.c:
ismounted.c (check_mntent_file): Work around GNU hurd brain damage.bitmap-optimize
parent
30ae14c9de
commit
66a461469c
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue