brp-mangle-shebangs: Simplify/Fix check for shebang starting with "/"
Reported-by: Jun Aruga <jaruga@redhat.com> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1541057 Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
8444cee8f3
commit
51f1c66748
@ -23,7 +23,7 @@ for f in $(find -executable -type f | xargs --no-run-if-empty file -N --mime-typ
|
|||||||
chmod -x "$f"
|
chmod -x "$f"
|
||||||
touch -d "$ts" "$f"
|
touch -d "$ts" "$f"
|
||||||
continue
|
continue
|
||||||
elif [ "${shebang%${shebang#?}}" != "/" ]; then
|
elif [ -n "${shebang##/*}" ]; then
|
||||||
echo >&2 "*** ERROR: $f has shebang which doesn't start with '/' ($shebang)"
|
echo >&2 "*** ERROR: $f has shebang which doesn't start with '/' ($shebang)"
|
||||||
fail=1
|
fail=1
|
||||||
continue
|
continue
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
Version: 95
|
Version: 96
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
# No version specified.
|
# No version specified.
|
||||||
License: GPL+
|
License: GPL+
|
||||||
@ -183,6 +183,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
|
|||||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 96-1
|
||||||
|
- Simplify/Fix check for shebang starting with "/"
|
||||||
|
|
||||||
* Wed Feb 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 95-1
|
* Wed Feb 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 95-1
|
||||||
- Fix mangling env shebangs with absolute paths
|
- Fix mangling env shebangs with absolute paths
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user