aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-04-30 08:00:55 +0000
committerNeil Conway <neilc@samurai.com>2005-04-30 08:00:55 +0000
commit15ea6d5a2fdc57ef14ebf2c06f4f7392b6599899 (patch)
tree580e376f7c30c034e9109f1bf33508ca3d8f1d62
parent3b15457092d488eb86ef699a412013a22d2bb2ea (diff)
downloadpostgresql-15ea6d5a2fdc57ef14ebf2c06f4f7392b6599899.tar.gz
postgresql-15ea6d5a2fdc57ef14ebf2c06f4f7392b6599899.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.
-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 33aafcd6c45..2189c61d472 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.53 2003/10/20 21:05:12 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.53.2.1 2005/04/30 08:00:55 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -324,7 +324,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);
}