Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Cc: base-system@g.o
Subject: Re: [gentoo-dev] [PATCH 1/3] dotnet.eclass: pass -S to file to disable seccomp
Date: Thu, 05 Jan 2023 00:32:54
Message-Id: 3892DBE1-0DAB-4A84-814D-05B5186A8A53@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 1/3] dotnet.eclass: pass -S to file to disable seccomp by Ulrich Mueller
1 > On 3 Jan 2023, at 11:47, Ulrich Mueller <ulm@g.o> wrote:
2 >
3 >>>>>> On Tue, 03 Jan 2023, Sam James wrote:
4 >
5 >> - if [[ "$(file "${exe}")" == *"shell script text"* ]]
6 >> + if [[ "$(file -S "${exe}")" == *"shell script text"* ]]
7 >
8 > POSIX file doesn't know the -S option. Could that cause any problems,
9 > e.g. on prefix systems?
10
11 I think it should be okay as we add our own PATH first. But it's a fair point.

Attachments

File name MIME type
signature.asc application/pgp-signature