From 27ac76046650ae722172bb690330baab0f260430 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 14 Jan 2025 15:40:10 -0800 Subject: [PATCH] Using _ seems risky --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 857a61d3a..58cfbb3b1 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -6937,7 +6937,7 @@ if (exists($main::locked_file_data{$realfile})) { # is a file, or has changed type?! my ($diff, $delete_file); my $type = "modify"; - if (!-r _) { + if (!-e $realfile) { open(NEWFILE, ">$realfile"); close(NEWFILE); $delete_file++;