mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 00:01:20 -04:00
Fix thinko when bumping on temporary directories in pg_checksums
This fixes an oversight from 5c99513. This has no actual consequence as PG_TEMP_FILE_PREFIX and PG_TEMP_FILES_DIR have the same value so when bumping on a temporary path the directory scan was still moving on to the next entry instead of skipping the rest of the scan, but let's keep the logic correct. Author: Michael Banck Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/20190314.115417.58230569.horiguchi.kyotaro@lab.ntt.co.jp Backpatch-through: 11
This commit is contained in:
parent
401b87a24f
commit
6eebfdc38b
@ -171,7 +171,7 @@ scan_directory(const char *basedir, const char *subdir)
|
||||
if (strncmp(de->d_name,
|
||||
PG_TEMP_FILES_DIR,
|
||||
strlen(PG_TEMP_FILES_DIR)) == 0)
|
||||
return;
|
||||
continue;
|
||||
|
||||
snprintf(fn, sizeof(fn), "%s/%s", path, de->d_name);
|
||||
if (lstat(fn, &st) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user