about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-14 06:44:19 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-14 06:44:19 +0000
commit56b2223e327922cff549fd78a5df2f94c6d38e67 (patch)
tree537c7984d9fc967767b131fd51159ae527a1a25e
parent09022115c1a3e7c4619077bfe7e233553257b4e4 (diff)
downloadglibc-56b2223e327922cff549fd78a5df2f94c6d38e67.tar.gz
glibc-56b2223e327922cff549fd78a5df2f94c6d38e67.tar.xz
glibc-56b2223e327922cff549fd78a5df2f94c6d38e67.zip
Update.
	* io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
	don't fail.
-rw-r--r--ChangeLog3
-rw-r--r--io/test-lfs.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3816218256..e20963b475 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
 
+	* io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
+	don't fail.
+
 	* elf/elf.h: Add missing official relocations.
 
 	* libio/stdio.h: Define __FILE if __need___FILE is defined.
diff --git a/io/test-lfs.c b/io/test-lfs.c
index e14b81c273..f73e67e0ef 100644
--- a/io/test-lfs.c
+++ b/io/test-lfs.c
@@ -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);