From: Gordon Hecker Date: Tue, 19 Jan 2010 12:43:57 +0000 (+0100) Subject: bugfix: fix an incorrect return value that lead to a backtrace when calculating filei... X-Git-Tag: e2factory-2.3.4pre1~44 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=6427c2ae0e83608a2fbdeeb2c0e08e62dee26b3c;p=e2factory.git bugfix: fix an incorrect return value that lead to a backtrace when calculating fileid for non-existent files Signed-off-by: Gordon Hecker --- diff --git a/local/e2tool.lua b/local/e2tool.lua index ac4d0c9..aeb4e71 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -1256,11 +1256,11 @@ function e2tool.hashcache(info, file) local rc, re, fileid local p, re = info.cache:file_path(file.server, file.location, {}) if not p then - return e:cat(re) + return nil, e:cat(re) end local s = e2util.stat(p) if not s then - return e:cat(new_error("stat() failed")) + return nil, e:cat(new_error("stat() failed")) end local id = string.format("%s:%s", file.server, file.location) local fileid