Clean up checking for pg_dumpall output directory

Andrew Dunstan <andrew@dunslane.net>

Commit: 643a1a61985bef25904965053020057200d4ae48
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2025-04-06T21:04:58Z
Releases: 18.0
Clean up checking for pg_dumpall output directory

Coverity objected to the original code, and in any case this is much
cleaner, using the existing routine pg_check_dir() instead of rolling
its own test.

Per suggestion from Tom Lane.

Files

PathChange+/−
src/bin/pg_dump/pg_dumpall.c modified +20 −38