From 6427c2ae0e83608a2fbdeeb2c0e08e62dee26b3c Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Tue, 19 Jan 2010 13:43:57 +0100 Subject: [PATCH] bugfix: fix an incorrect return value that lead to a backtrace when calculating fileid for non-existent files Signed-off-by: Gordon Hecker --- local/e2tool.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5