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:
teastep 2007-06-20 23:06:16 +00:00
parent fd46db8b4b
commit ad4115b1a1
2 changed files with 2 additions and 2 deletions

View File

@ -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
#

View File

@ -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