Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd
В списке pgsql-bugs по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd |
| Дата | |
| Msg-id | 20131209214539.GL6777@eldon.alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: BUG #8139: initdb: Misleading error message when
current user not in /etc/passwd
|
| Список | pgsql-bugs |
Bruce Momjian wrote:
> return STATUS_ERROR;
> }
>
> ! user_name = get_user_name(&errstr);
> ! if (!user_name)
> {
> ! ereport(LOG, (errmsg("%s\n", errstr)));
> ! pfree(errstr);
> return STATUS_ERROR;
> }
The message is already translated by get_user_name, so I think this
should use errmsg_internal() instead of errmsg(). Also, why do you add
a newline?
Not clear whether the new file should be in src/port or src/common.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера