m4-1.4.16-readlink-einval.patch 542 B

12345678910111213
  1. diff -up m4-1.4.16/tests/test-readlink.h.orig m4-1.4.16/tests/test-readlink.h
  2. --- m4-1.4.16/tests/test-readlink.h.orig 2011-09-19 12:44:58.745546826 +0200
  3. +++ m4-1.4.16/tests/test-readlink.h 2011-09-19 12:46:00.079548410 +0200
  4. @@ -38,7 +38,7 @@ test_readlink (ssize_t (*func) (char con
  5. ASSERT (errno == ENOENT);
  6. errno = 0;
  7. ASSERT (func ("", buf, sizeof buf) == -1);
  8. - ASSERT (errno == ENOENT);
  9. + ASSERT (errno == ENOENT || errno == EINVAL);
  10. errno = 0;
  11. ASSERT (func (".", buf, sizeof buf) == -1);
  12. ASSERT (errno == EINVAL);