a296bffe53
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
26 lines
854 B
Diff
26 lines
854 B
Diff
---
|
|
tests/init.sh | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
Index: tests/init.sh
|
|
===================================================================
|
|
--- tests/init.sh.orig
|
|
+++ tests/init.sh
|
|
@@ -691,6 +691,16 @@ compare ()
|
|
}
|
|
|
|
# -----------------------------------------------------------------------------
|
|
+# OpenSUSE/OSC workaround.
|
|
+# GNU make 4.3.90 leaks a lot of file descriptors when using the jobserver.
|
|
+# Close all of them pointing to files matching '/tmp/Gm*'.
|
|
+p=$$
|
|
+for n in $(find /proc/$p/fd -lname '/tmp/Gm*' -printf '%P\n'); do
|
|
+ exec {n}>&-
|
|
+done
|
|
+# -----------------------------------------------------------------------------
|
|
+
|
|
+# -----------------------------------------------------------------------------
|
|
|
|
# If you want to override the testdir_prefix_ function,
|
|
# or to add more utility functions, use this file.
|