Fix bug in pg_dump and psql (to reproduce the bug, just try pg_dump
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 14 May 2002 02:08:22 +0000 (02:08 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 14 May 2002 02:08:22 +0000 (02:08 +0000)
commit729ea80ea5041ee30494a7ad61fe3b3d9570217d
tree6aa6a741ac4fcd155b46d7c5a8e25ae7ec35f5e5
parent36ab737a6b6c6f55db3250920c0c663b07af328a
Fix bug in pg_dump and psql (to reproduce the bug, just try pg_dump
--nonexistingoption).

per report from sugita@sra.co.jp on Thu, 09 May 2002 11:57:51 +0900
(JST) at pgsql-patches list.

Illegal long options to pg_dump makes core on some systems, since it
lacks the last null sentinel of struct option array.

Attached is a patch made by Mr. Ishida Akio <iakio@pjam.jpweb.net>.
src/bin/pg_dump/pg_dump.c
src/bin/psql/startup.c