Code cleanup - always explicitly open for read

This commit is contained in:
Jamie Cameron
2020-03-14 09:33:28 -07:00
parent cddd999902
commit 68f4a3269d
8 changed files with 12 additions and 12 deletions

View File

@@ -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