From 901a30d49f780c0e718bafbe683babd3f9a0e67b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 3 Aug 2008 05:12:45 +0000 Subject: [PATCH] Fix copy-and-pasteo that's causing pg_regress to lie about which file it can't read when the --temp-config argument is bad. Noted while wondering why buildfarm member dungbeetle is failing ... this isn't why, but it is why the error report isn't very helpful ... --- src/test/regress/pg_regress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index 8c2cf7e4d9..c78cb35faa 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -2035,7 +2035,7 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc extra_conf = fopen(temp_config, "r"); if (extra_conf == NULL) { - fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, buf, strerror(errno)); + fprintf(stderr, _("\n%s: could not open %s to read extra config:\nError was %s\n"), progname, temp_config, strerror(errno)); exit_nicely(2); } while (fgets(line_buf, sizeof(line_buf), extra_conf) != NULL) -- 2.39.5