Overview

Request 1186505 accepted

- 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 .

Loading...
Request History
Bernhard Voelker's avatar

berny created request

- 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 .


Bernhard Voelker's avatar

berny accepted request

ok

openSUSE Build Service is sponsored by