ports/51610: www/reportmagic: rmagic.sample (config file) & sample.dat (log file) are executable
Kevin Golding
kevin at caomhin.demon.co.uk
Sun Sep 28 11:50:20 UTC 2003
The following reply was made to PR ports/51610; it has been noted by GNATS.
From: Kevin Golding <kevin at caomhin.demon.co.uk>
To: freebsd-gnats-submit at FreeBSD.org, pepper at rockefeller.edu
Cc:
Subject: Re: ports/51610: www/reportmagic: rmagic.sample (config file) & sample.dat (log file) are executable
Date: Sun, 28 Sep 2003 12:38:55 +0100
Actually the original does install the files as 755. The Install.PL
script sets 2 variables:
$FILE_MODE = 0644;
$EXEC_MODE = 0755;
Then later it installs the two files in question with the lines:
&install( $EXEC_MODE, 'rmagic.sample', $DEST ) || $err_cnt++;
&install( $EXEC_MODE, 'sample.dat', $DEST ) || $err_cnt++;
As a workaround we could use the following diff as patch-ab for now, but
since it probably belongs in rmagic itself I've also sent this to the
author.
Kevin
--- Install.PL.orig Sun Sep 28 11:25:04 2003
+++ Install.PL Sun Sep 28 11:25:35 2003
@@ -241,8 +241,8 @@
&install( $FILE_MODE, 'analogo.png', $DEST ) || $err_cnt++;
print "... Installing Report Magic sample files.\n";
&install( $FILE_MODE, 'samples/', $DEST.'samples/' ) || $err_cnt++;
- &install( $EXEC_MODE, 'rmagic.sample', $DEST ) || $err_cnt++;
- &install( $EXEC_MODE, 'sample.dat', $DEST ) || $err_cnt++;
+ &install( $FILE_MODE, 'rmagic.sample', $DEST ) || $err_cnt++;
+ &install( $FILE_MODE, 'sample.dat', $DEST ) || $err_cnt++;
print "... Installing Report Magic language files.\n";
&install( $FILE_MODE, 'lang/', $DEST.'lang/' ) || $err_cnt++;
print "... Installing Report Magic program files.\n";
More information about the freebsd-ports-bugs
mailing list