Strange archivedir bug

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1156 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2011-12-30 19:36:39 +00:00
parent e2bf139966
commit 968c58ae7c

View File

@@ -184,7 +184,7 @@ FileLog_Get($@)
} else {
my $linf = "$1/$inf" if($hash->{currentlogfile} =~ m,^(.*)/[^/]*$,o);
if(!-f $linf) {
$linf = $attr{$hash->{NAME}}{archivedir} . "/" . $inf;
$linf = AttrValue($hash->{NAME},"archivedir",".") ."/". $inf;
return "Error: cannot access $linf" if(!-f $linf);
}
$inf = $linf;