From 5aea0223dcff337761ee1cd56e62a8064b133ec2 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 30 Jan 2022 20:10:34 +0100 Subject: [PATCH] When stat() in updatedb fails, report the path instead of just the parent directory. Reported by Kevin Locke. --- updatedb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatedb.cpp b/updatedb.cpp index 8d524c6..4ead43f 100644 --- a/updatedb.cpp +++ b/updatedb.cpp @@ -713,7 +713,7 @@ int scan(const string &path, int fd, dev_t parent_dev, dir_time modified, dir_ti struct stat buf; if (fstat(e.fd, &buf) != 0) { - perror(path.c_str()); + perror((path_plus_slash + e.name).c_str()); exit(1); } -- 2.39.2