mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Switch all calls to open() to explicitly open for read
This commit is contained in:
@ -15,7 +15,7 @@ if ($in{'source'} == 0) {
|
||||
$data =~ /\S/ || &error($text{'batch_efile'});
|
||||
}
|
||||
elsif ($in{'source'} == 1) {
|
||||
open(LOCAL, $in{'local'}) || &error($text{'batch_elocal'});
|
||||
open(LOCAL, "<$in{'local'}") || &error($text{'batch_elocal'});
|
||||
while(<LOCAL>) {
|
||||
$data .= $_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user