diff options
author | Michael Paquier | 2019-03-14 05:14:49 +0000 |
---|---|---|
committer | Michael Paquier | 2019-03-14 05:14:49 +0000 |
commit | 6eebfdc38b173edcd179f422cf7083383edb24bc (patch) | |
tree | e49e5b6e1020ff5e87f2464859cd8792e3f0a5f6 /src | |
parent | 401b87a24fbab7bfb48eb48050a51e033452ac6e (diff) |
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/[email protected]
Backpatch-through: 11
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_checksums/pg_checksums.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c index 6571c34211..5d4083fa9f 100644 --- a/src/bin/pg_checksums/pg_checksums.c +++ b/src/bin/pg_checksums/pg_checksums.c @@ -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) |