Re: Remove line length restriction in passwordFromFile()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove line length restriction in passwordFromFile()
Дата
Msg-id 54742.1598973287@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove line length restriction in passwordFromFile()  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Ответы Re: Remove line length restriction in passwordFromFile()
Список pgsql-hackers
Fujii Masao <masao.fujii@oss.nttdata.com> writes:
> The patch looks good to me, except the following minor thing.
> +        if (fgets(buf.data + buf.len, buf.maxlen - buf.len - 1, fp) == NULL)
> IIUC fgets() reads the data with the specified size - 1, so ISTM that -1 of
> "buf.maxlen - buf.len - 1" is not necessary.

Good point, I was being unduly conservative.  Thanks for reviewing
the patch!

            regards, tom lane



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

Предыдущее
От: Li Japin
Дата:
Сообщение: Re: Docs: inaccurate description about config settings
Следующее
От: Dave Page
Дата:
Сообщение: Kerberos support broken on MSVC builds for Windows x64?