Skip to content

Commit

Permalink
Skip file if an invalid segment number was found
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanck committed Aug 3, 2019
1 parent bff1056 commit 240ef52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pg_checksums.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,7 @@ scan_directory(const char *basedir, const char *subdir, bool sizeonly)
*segmentpath++ = '\0';
segmentno = atoi(segmentpath);
if (segmentno == 0)
{
fprintf(stderr, _("%s: invalid segment number %d in file name \"%s\"\n"),
progname, segmentno, fn);
exit(1);
}
continue;
}

forkpath = strchr(fnonly, '_');
Expand Down

0 comments on commit 240ef52

Please sign in to comment.