Skip to content

Commit 6eebfdc

Browse files
committed
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
1 parent 401b87a commit 6eebfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_checksums/pg_checksums.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ scan_directory(const char *basedir, const char *subdir)
171171
if (strncmp(de->d_name,
172172
PG_TEMP_FILES_DIR,
173173
strlen(PG_TEMP_FILES_DIR)) == 0)
174-
return;
174+
continue;
175175

176176
snprintf(fn, sizeof(fn), "%s/%s", path, de->d_name);
177177
if (lstat(fn, &st) < 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy