Re: pg_hba.conf: samehost and samenet [REVIEW]

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: pg_hba.conf: samehost and samenet [REVIEW]
Дата
Msg-id 20090930175633.GA7979@toroid.org
обсуждение исходный текст
Ответ на Re: pg_hba.conf: samehost and samenet [REVIEW]  (Stef Walter <stef-list@memberwebs.com>)
Список pgsql-hackers
At 2009-09-30 11:16:57 -0500, stef-list@memberwebs.com wrote:
>
> I've now added tests for sys/ioctl.h and net/if.h even though these
> headers seemed to be common to all the unixes investigated.

Thanks. I've marked this ready for committer now.

> FWIW, there are checks for various bad netmasks. I incorporated these
> techniques after seeing them in the corresponding postfix code. [...]
>
> BTW, there's also fallback code. If none of the methods work on a
> given OS, then the ifaddrs code just lists 127.0.0.1/8 and ::1/128.

Both of these look good.

> +         /*
> +          * Wrong address family.  We allow only one case: if the file
> +          * has IPv4 and the port is IPv6, promote the file address to
> +          * IPv6 and try to match that way.
> +          */

I still think this comment should be fixed in _both_ places it now
occurs, but oh well.

(Note: I have not tested under Windows, and I've not tested
test_ifaddrs.c. Also, there are a few lines which introduce
trailing whitespace.)

-- ams


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: CommitFest 2009-09, two weeks on
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Unicode UTF-8 table formatting for psql text output