]> git.sesse.net Git - plocate/blobdiff - updatedb.cpp
When stat() in updatedb fails, report the path instead of just the parent directory.
[plocate] / updatedb.cpp
index 8d524c6872038b4c72829de3d12cbb354f6fc760..4ead43f66c2493bf98ed5af3fa8c2163b6aa1284 100644 (file)
@@ -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);
                }