diff --git a/cmds-inspect.c b/cmds-inspect.c index 879fd43c..a13a170e 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -243,6 +243,7 @@ static int cmd_inspect_logical_resolve(int argc, char **argv) if (path_fd < 0) { fprintf(stderr, "ERROR: can't access " "'%s'\n", full_path); + ret = -ENOENT; goto out; } }