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.
This commit is contained in:
Neil Conway 2005-04-30 08:00:55 +00:00
parent 3b15457092
commit 15ea6d5a2f

View File

@ -34,7 +34,7 @@
* *
* *
* IDENTIFICATION * 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; break;
default: 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); opts->formatName);
exit(1); exit(1);
} }