X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=updatedb.cpp;h=4ead43f66c2493bf98ed5af3fa8c2163b6aa1284;hb=5aea0223dcff337761ee1cd56e62a8064b133ec2;hp=8d524c6872038b4c72829de3d12cbb354f6fc760;hpb=4a70122ed746cb67c6f6a10cbf400627e7b03c29;p=plocate 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); }