diff options
author | Neil Conway <neilc@samurai.com> | 2005-04-30 08:01:29 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-04-30 08:01:29 +0000 |
commit | 8f54b0555126988e52a2e654ef28fbf651087e38 (patch) | |
tree | 923093e0754f2a500066f0514a11e2140d8344b1 | |
parent | 2cfb3b6d4d59dabd401b658023629d15688f8493 (diff) | |
download | postgresql-8f54b0555126988e52a2e654ef28fbf651087e38.tar.gz |
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.
-rw-r--r-- | src/bin/pg_dump/pg_restore.c | 4 |
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 46a3ee8b2e..44f9033bef 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -34,7 +34,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.43 2002/10/18 22:05:36 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.43.2.1 2005/04/30 08:01:29 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -327,7 +327,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); } |