GNU bug report logs -
#11816
sort -o: error comes late if opening the outfile fails
Previous Next
Full log
View this message in rfc822 format
On 07/02/2012 06:55 PM, Jim Meyering wrote:
> Pádraig Brady wrote:
>> ...
>> diff --git a/tests/misc/sort-exit-early b/tests/misc/sort-exit-early
> ...
>> +test $? == 124 && fail=1
>> +
>> +# Check all inputs are readable before starting to sort
>> +# Also ensure the output isn't created in this case
>> +touch output
>> +chmod a-r output
>> +timeout 10 sort -o typo - output && fail=1
>> +test $? == 124 && fail=1
>
> "make syntax-check" dinged these:
>
> tests/misc/sort-exit-early:24:test $? == 124 && fail=1
> tests/misc/sort-exit-early:31:test $? == 124 && fail=1
> maint.mk: use "test x = x", not "test x == x"
> make: *** [sc_prohibit_test_double_equal] Error 1
>
>
> Here's a fix for a formatting nit in the sources:
>
> static void
> -check_inputs (char * const *files, size_t nfiles)
> +check_inputs (char *const *files, size_t nfiles)
>
> Otherwise, it all looks fine.
> Thanks again.
Pushed.
thanks for the careful review.
Pádraig.
This bug report was last modified 13 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.