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:01:58 +0000 (08:01 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 30 Apr 2005 08:01:58 +0000 (08:01 +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 e6747fd53f7455a573256e37b11f38a21a6572ac..497736200cefc2eec892c79acc6440b9c597de06 100644 (file)
@@ -34,7 +34,7 @@
  *
  *
  * IDENTIFICATION
- *     $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.33 2002/01/18 19:17:05 momjian Exp $
+ *     $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.33.2.1 2005/04/30 08:01:58 neilc Exp $
  *
  * Modifications - 28-Jun-2000 - pjw@rhyme.com.au
  *
@@ -332,7 +332,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);
        }