]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: consistently diagnose access issues to --compress-program
authorBruno Haible <bruno@clisp.org>
Thu, 30 Oct 2025 09:15:09 +0000 (10:15 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 30 Oct 2025 18:34:49 +0000 (18:34 +0000)
commit1cfc35ab4c41c49743c8494bea23f168eccae879
tree8d415945f27092902a04c60b0713f0f7224c2267
parentb294aff3fe6c8ebeda02b8c77877ba618474de41
sort: consistently diagnose access issues to --compress-program

* bootstrap.conf (gnulib_modules): Add findprog-in.
* src/sort.c: Include findprog.h.
(pipe_child): Look up the compress_program in $PATH and report errors
such as ENOENT or EACCES before invoking posix_spawnp.
This avoids inconsistency on systems that emulate posix_spawn through
fork/exec, as they would otherwise treat such a failure as a generic
failure and fail the sort, rather than continuing without compression.
bootstrap.conf
src/sort.c