mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Switch all calls to open() to explicitly open for read
This commit is contained in:
@@ -5,7 +5,7 @@ BEGIN { push(@INC, ".."); };
|
||||
use WebminCore;
|
||||
&init_config();
|
||||
|
||||
if (open(VERSION, "$module_config_directory/version")) {
|
||||
if (open(VERSION, "<$module_config_directory/version")) {
|
||||
chop($logrotate_version = <VERSION>);
|
||||
close(VERSION);
|
||||
}
|
||||
@@ -45,7 +45,7 @@ local $addto = \@rv;
|
||||
local $section = undef;
|
||||
local $lnum = 0;
|
||||
local $fh = "FILE".$file_count++;
|
||||
open($fh, $file);
|
||||
open($fh, "<".$file);
|
||||
while(<$fh>) {
|
||||
s/\r|\n//g;
|
||||
s/#.*$//;
|
||||
|
||||
Reference in New Issue
Block a user