]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
This patch fixes a bug in the error message emitted by pg_restore on an
authorNeil Conway <neilc@samurai.com>
Sat, 30 Apr 2005 08:00:14 +0000 (08:00 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 30 Apr 2005 08:00:14 +0000 (08:00 +0000)
incorrect -F argument: write_msg() expects its first parameter to be a
"module name", not the format string.

src/bin/pg_dump/pg_restore.c

index d74d1b344ed08b49c4144e16b399a9aedb0eebe8..c64b09e606c19da819897bbdd4d10a93e601a021 100644 (file)
@@ -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);
                }