coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort/sort-compress test failure on several platforms


From: Bruno Haible
Subject: Re: sort/sort-compress test failure on several platforms
Date: Fri, 31 Oct 2025 10:25:07 +0100

Collin Funk wrote:
> > Note the above ENOEXEC fallback issue also impacts sort --compress,
> > but that's a less general use case so I don't think it's worth
> > worrying about or changing anything for.  We could document that
> > change in behavior though in NEWS.
> 
> Good point. I didn't notice. The GNU Make example that Bruno linked has
> two posix_spawn invocations to handle this [1].
> [1] https://sources.debian.org/src/make-dfsg/4.4.1-2/src/job.c?hl=2450#L2450

Refusing to execute a text file without shebang (or even an unknown binary type)
like it were a /bin/sh script is seen as a feature (for security) nowadays. See
https://www.austingroupbugs.net/view.php?id=1674
https://sourceware.org/bugzilla/show_bug.cgi?id=13134
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=13adfa34aff03fd9f1c1612b537a0d736ddb6c2b

It is understandable that GNU make has special provisions, for backward
compatibility. The same argument need not necessarily apply to
'sort --compress' and 'timeout'.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]