summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-02-28 23:28:49 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-01 01:34:09 +0000
commit918426be7f3660c63cebe082bf8eac82a38bf756 (patch)
treeead07ef465ee79f5fa6d5d2164d47fc8675c5676 /embed.pl
parentdc2a6c80c7235d8ba099bfea6ec41cb4da7e3260 (diff)
downloadperl-918426be7f3660c63cebe082bf8eac82a38bf756.tar.gz
don't write along symlinks into a read only source tree (was Re: [ID 20010129.006] OK: perl v5.7.0 +DEVEL8584 on i586-linux-64all 2.2.12 (UNINSTALLED))
Message-ID: <20010228232849.A55187@plum.flirble.org> Allow a completely write protected source code tree when using the Configure -Dmksymlinks. p4raw-id: //depot/perl@8971
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.pl b/embed.pl
index a3bedbaa0b..fcee010d62 100755
--- a/embed.pl
+++ b/embed.pl
@@ -29,6 +29,7 @@ sub walk_table (&@) {
$F = $filename;
}
else {
+ unlink $filename;
open F, ">$filename" or die "Can't open $filename: $!";
$F = \*F;
}