summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-11-21 16:07:20 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-11-21 16:07:20 +0000
commit36d52296c16de220053927a47cf296e148a3a79d (patch)
tree05c595a56bd88aafc075a80d05793d09cff4031d
parenta52cb5f71fdb108349442902e9c003c02608aae2 (diff)
downloadperl-36d52296c16de220053927a47cf296e148a3a79d.tar.gz
Skip processing a file if the file to be opened is '-'
(can happen in UNICOS) p4raw-id: //depot/cfgperl@4596
-rw-r--r--ext/Errno/Errno_pm.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
index 18260a9dca..ba0b281c83 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -21,7 +21,7 @@ unlink "errno.c" if -f "errno.c";
sub process_file {
my($file) = @_;
- return unless defined $file;
+ return if !defined $file || $file eq '-';
local *FH;
if (($^O eq 'VMS') && ($Config{vms_cc_type} ne 'gnuc')) {