mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Code cleanup - always explicitly open for read
This commit is contained in:
@@ -45,7 +45,7 @@ $start = time();
|
||||
while(1) {
|
||||
sleep(1);
|
||||
$now = time();
|
||||
if (!open(UPFILE, $upfile)) {
|
||||
if (!open(UPFILE, "<$upfile")) {
|
||||
# Doesn't exist yet
|
||||
if ($now - $start > 60) {
|
||||
# Give up after 60 seconds
|
||||
|
||||
Reference in New Issue
Block a user