aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-04-30 08:00:14 +0000
committerNeil Conway <neilc@samurai.com>2005-04-30 08:00:14 +0000
commit7ce01797bd115b0269ee93bc42fe858a7bfb9a47 (patch)
tree0eceba56c4ba0bc44e62ef0e60227458baf7c9eb /src
parentf22b3b2760639dab3aeed5e378e417ed24abd7a6 (diff)
downloadpostgresql-7ce01797bd115b0269ee93bc42fe858a7bfb9a47.tar.gz
postgresql-7ce01797bd115b0269ee93bc42fe858a7bfb9a47.zip
This patch fixes a bug in the error message emitted by pg_restore on an
incorrect -F argument: write_msg() expects its first parameter to be a "module name", not the format string.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c
index d74d1b344ed..c64b09e606c 100644
--- a/src/bin/pg_dump/pg_restore.c
+++ b/src/bin/pg_dump/pg_restore.c
@@ -34,7 +34,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.68 2004/12/03 18:48:19 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.68.4.1 2005/04/30 08:00:14 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -314,7 +314,7 @@ main(int argc, char **argv)
break;
default:
- write_msg("unrecognized archive format '%s'; please specify 't' or 'c'\n",
+ write_msg(NULL, "unrecognized archive format '%s'; please specify 't' or 'c'\n",
opts->formatName);
exit(1);
}