1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
* io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
	don't fail.
This commit is contained in:
Ulrich Drepper
2000-09-14 06:44:19 +00:00
parent 09022115c1
commit 56b2223e32
2 changed files with 5 additions and 2 deletions

View File

@ -91,7 +91,7 @@ do_test (int argc, char *argv[])
error (0, errno, "LFS seems not to be supported.");
exit (EXIT_SUCCESS);
}
if (ret != 5)
error (EXIT_FAILURE, errno, "cannot write test string to large file");
@ -102,7 +102,7 @@ do_test (int argc, char *argv[])
ret = stat64 (name, &statbuf);
if (ret == -1 && errno == ENOSYS)
if (ret == -1 && (errno == ENOSYS || errno == EOVERFLOW))
error (0, errno, "stat64 is not supported");
else if (ret == -1)
error (EXIT_FAILURE, errno, "cannot stat file `%s'", name);