Skip to content

Commit

Permalink
Added a forgotten targetPath (boo#903747).
Browse files Browse the repository at this point in the history
Respect target root also when the file
does not exist in the original root.

The bug manifested during upgrade of 13.1 to 13.2:
  Internal error. ...
  Caller: /mounts/mp_0001/usr/share/YaST2/modules/Kernel.rb:626:in `block in SaveModulesToLoad'
  • Loading branch information
mvidner committed Nov 25, 2014
1 parent dc1913b commit e138793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent-any/src/AnyAgent.cc
Expand Up @@ -740,7 +740,7 @@ AnyAgent::readFile (const YCPValue & arg)
{
const char *s = ss.c_str();
// Check modify time if we can use cache
if (stat (s, &buf) != 0)
if (stat (targetPath(s).c_str(), &buf) != 0)
{
mtime = 0; // error case: reset mtime
if (errno == ENOENT)
Expand Down

0 comments on commit e138793

Please sign in to comment.