summaryrefslogtreecommitdiff
path: root/opcode.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-15 13:45:03 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-15 13:45:03 +0000
commit8999201bab63458618adf26ec16c87a4d7bec076 (patch)
tree631a27d1996f8b0cdd2d52844ed9f926d8256447 /opcode.pl
parent8bdaa535e831907095d85cca82627c485c5244c6 (diff)
downloadperl-8999201bab63458618adf26ec16c87a4d7bec076.tar.gz
Some filesystems require writability for rename/unlink.
p4raw-id: //depot/perl@10604
Diffstat (limited to 'opcode.pl')
-rwxr-xr-xopcode.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/opcode.pl b/opcode.pl
index 3c9ae929eb..2f4a7fda36 100755
--- a/opcode.pl
+++ b/opcode.pl
@@ -254,6 +254,9 @@ if (keys %OP_IS_FILETEST) {
close OC or die "Error closing opcode.h: $!";
close ON or die "Error closing opnames.h: $!";
+chmod 0600, 'opcode.h'; # required by dosish filesystems
+chmod 0600, 'opnames.h'; # required by dosish filesystems
+
rename 'opcode.h.new', 'opcode.h' or die "renaming opcode.h: $!\n";
rename 'opnames.h.new', 'opnames.h' or die "renaming opnames.h: $!\n";
@@ -295,6 +298,9 @@ for (@ops) {
close PP or die "Error closing pp_proto.h: $!";
close PPSYM or die "Error closing pp.sym: $!";
+chmod 0600, 'pp_proto.h'; # required by dosish filesystems
+chmod 0600, 'pp.sym'; # required by dosish filesystems
+
rename 'pp_proto.h.new', 'pp_proto.h' or die "rename pp_proto.h: $!\n";
rename 'pp.sym.new', 'pp.sym' or die "rename pp.sym: $!\n";