diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-10-22 16:55:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 16:55:19 +0200 |
commit | 609a42d63b32df303a201d0576ad82b7a5d46578 (patch) | |
tree | 5a28ddda409cbd84bd117a630b0e1d68e2a1b82d /SECURITY.md | |
parent | d274769761f98611ad6741b6f721eb0687765b6e (diff) | |
download | spack-609a42d63b32df303a201d0576ad82b7a5d46578.tar.gz spack-609a42d63b32df303a201d0576ad82b7a5d46578.tar.bz2 spack-609a42d63b32df303a201d0576ad82b7a5d46578.tar.xz spack-609a42d63b32df303a201d0576ad82b7a5d46578.zip |
Shorten long shebangs only if the execute permission is set (#26899)
The OS should only interpret shebangs, if a file is executable.
Thus, there should be no need to modify files where no execute bit is set.
This solves issues that are e.g. encountered while packaging software as
COVISE (https://github.com/hlrs-vis/covise), which includes example data
in Tecplot format. The sbang post-install hook is applied to every installed
file that starts with the two characters #!, but this fails on the binary Tecplot
files, as they happen to start with #!TDV. Decoding them with UTF-8 fails
and an exception is thrown during post_install.
Co-authored-by: Martin Aumùˆller <aumuell@reserv.at>
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions