pgsql: Fix potentially-unportable code in contrib/adminpack.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Fix potentially-unportable code in contrib/adminpack. |
| Дата | |
| Msg-id | E1f7l2u-00045C-40@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Fix potentially-unportable code in contrib/adminpack. Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and inconsistent with adjacent code. In passing, don't spell "NULL" as "0" either. Yes, that's legal C; no, it's not project style. Back-patch, just in case the unportability is real and not theoretical. (Most likely, even if a platform had different bit assignments for access()'s modes, there'd not be an observable behavior difference here; but I'm being paranoid today.) Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f29eff7ac500e5d75a3c1991ba0a4fa09946e6b7 Modified Files -------------- contrib/adminpack/adminpack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера