Re: [PATCH] Fix missing argument handling in psql getopt

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Fix missing argument handling in psql getopt
Дата
Msg-id 31439.1566761292@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Fix missing argument handling in psql getopt  (Quentin Rameau <quinq@fifth.space>)
Ответы Re: [PATCH] Fix missing argument handling in psql getopt  (Quentin Rameau <quinq@fifth.space>)
Список pgsql-hackers
Quentin Rameau <quinq@fifth.space> writes:
> Another better way, I think, to fix this is to check for optopt
> instead, which would be set to the option which caused the error, which
> if empty means there isn't an error.

Meh.  We don't use optopt at all today, and I don't especially want
to start doing so.  A patch that's trying to remove a platform
dependency (which is what this is, pedantic arguments that musl can
read POSIX better than anyone else notwithstanding) should not do
so by introducing hazards of new platform dependencies.

I've pushed your original patch (with some comment-tweaking).
It seems unlikely to break anything.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Quentin Rameau
Дата:
Сообщение: Re: [PATCH] Fix missing argument handling in psql getopt
Следующее
От: Quentin Rameau
Дата:
Сообщение: Re: [PATCH] Fix missing argument handling in psql getopt