From 1f9c8f662b6e4bd0c2f1b7c64f02f4073409cb0e Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sun, 10 May 2015 07:09:22 +0000 Subject: [PATCH] 98_update.pm: use correct fhem.pl for size check (Forum #37044) git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8554 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_update.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_update.pm b/fhem/FHEM/98_update.pm index 2c217eb2c..2325a267f 100644 --- a/fhem/FHEM/98_update.pm +++ b/fhem/FHEM/98_update.pm @@ -199,7 +199,9 @@ doUpdate($$) next if($fName !~ m/$arg/); } else { - my $sz = -s "$root/$fName"; + my $fPath = "$root/$fName"; + $fPath = $0 if($fPath =~ m/$mainPgm/); + my $sz = -s $fPath; next if($lh{$fName} && $lh{$fName}{TS} eq $r[1] && $sz && $sz eq $r[2] &&