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:
@@ -97,7 +97,7 @@ return $_[0]->{'desc'} || $_[0]->{'realhost'} || $_[0]->{'host'};
|
||||
# Returns an array of open categories
|
||||
sub get_heiropen
|
||||
{
|
||||
open(HEIROPEN, "$module_config_directory/heiropen.$_[0]");
|
||||
open(HEIROPEN, "<$module_config_directory/heiropen.$_[0]");
|
||||
local @heiropen = <HEIROPEN>;
|
||||
chop(@heiropen);
|
||||
close(HEIROPEN);
|
||||
|
||||
Reference in New Issue
Block a user