Fix missing quotes.

Some shebangs might not be evaluated correctly without them.

https://bugzilla.redhat.com/show_bug.cgi?id=1541057#c3
This commit is contained in:
Vít Ondruch 2018-02-02 13:03:06 +01:00
parent ddb845537c
commit 7d2d7a7781
2 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@ for f in $(find -executable -type f | xargs --no-run-if-empty file -N --mime-typ
chmod -x "$f"
touch -d "$ts" "$f"
continue
elif [ "${shebang%${shebang#?}}" != "/" ]; then
elif [ "${shebang%"${shebang#?}"}" != "/" ]; then
echo >&2 "*** ERROR: $f has shebang which doesn't start with '/' ($shebang)"
fail=1
continue

View File

@ -6,7 +6,7 @@
Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config
Version: 94
Version: 95
Release: 1%{?dist}
# No version specified.
License: GPL+
@ -183,6 +183,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
%{_rpmconfigdir}/macros.d/macros.kmp
%changelog
* Wed Feb 07 2018 Vít Ondruch <vondruch@redhat.com> - 95-1
- Fix missing quotes in brp-mangle-shebangs.
* Sun Feb 4 2018 Florian Weimer <fweimer@redhat.com> - 94-1
- Add RPM macros for compiler/linker flags