pg_resetwal: Improve error with wrong/missing data directory Run chdir() before permission check to get a less confusing error message if the specified data directory does not exist.
Reviewed-by: Aleksander Alekseev <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1d863c250461410e60c9ed5d3180f32336f4c3e2 Modified Files -------------- src/bin/pg_resetwal/pg_resetwal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
