]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/weird_syntax_in_aggregate.pm.mdwn
Exclude working directory from library path (CVE-2016-1238)
[git.ikiwiki.info.git] / doc / bugs / weird_syntax_in_aggregate.pm.mdwn
1                 open (IN, "$config{wikistatedir}/aggregate" ||
2                         die "$config{wikistatedir}/aggregate: $!");
4 It looks like the intent was "open this file, and die if you can't", 
5 but I'm pretty sure it actually means "open this file and ignore errors
6 silently". Shouldn't this be `open(IN, $file) || die "$file: $!";`
7 (i.e. with the parens before the call to `die`)? --Ethan
9 > Thanks, [[done]] --[[Joey]]