coreutils/coreutils-getaddrinfo.patch
Bernhard Voelker a296bffe53 - coreutils-i18n.patch: fold(1): fix exit code for non-existent file.
The exit code of fold(1) was zero for non-existent file:
    $ fold badfile; echo $?
    fold: badfile: No such file or directory
    0

  * coreutils-i18n.patch (src/fold.c:fold_file): Fix incorrect return code
  for non-existent files; the I18N patch incorrectly returned an integer
  instead of a bool on failure.
  While at it, also fix the assignment to 'have_read_stdin' to bool.

  The bug was introduced by the downstrean I18N patch. (rhbz#2296201)
  Based on patch by Sohum Mendon <sohum.mendon@proton.me>.

OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=364
2024-07-10 21:09:17 +00:00

22 lines
763 B
Diff

---
gnulib-tests/test-getaddrinfo.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
Index: gnulib-tests/test-getaddrinfo.c
===================================================================
--- gnulib-tests/test-getaddrinfo.c.orig
+++ gnulib-tests/test-getaddrinfo.c
@@ -93,11 +93,7 @@ simple (char const *host, char const *se
the test merely because someone is down the country on their
in-law's farm. */
if (res == EAI_AGAIN)
- {
- skip++;
- fprintf (stderr, "skipping getaddrinfo test: no network?\n");
- return 77;
- }
+ return 0;
/* IRIX reports EAI_NONAME for "https". Don't fail the test
merely because of this. */
if (res == EAI_NONAME)