mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Properly secure Ports.pm
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6629 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
fd46db8b4b
commit
ad4115b1a1
@ -190,7 +190,7 @@ done
|
||||
#
|
||||
install_file buildports.pl ${PREFIX}/usr/share/shorewall-perl/buildports.pl 0555
|
||||
|
||||
[ -z "$PREFIX" ] && ./buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm
|
||||
[ -z "$PREFIX" ] && ./buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm && chmod 0555 /usr/share/shorewall-perl/Shorewall/Ports.pm
|
||||
|
||||
echo $VERSION > ${PREFIX}/usr/share/shorewall-perl/version
|
||||
#
|
||||
|
@ -46,7 +46,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
|
||||
/usr/share/shorewall-perl/buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm
|
||||
/usr/share/shorewall-perl/buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm && chmod 0555 /usr/share/shorewall-perl/Shorewall/Ports.pm
|
||||
|
||||
%preun
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user