Re: initdb mkdir_p() doesn't work

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: initdb mkdir_p() doesn't work
Дата
Msg-id 3FC1281C.5090702@dunslane.net
обсуждение исходный текст
Ответ на Re: initdb mkdir_p() doesn't work  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: initdb mkdir_p() doesn't work
Список pgsql-hackers

Tom Lane wrote:

>AFAICS mkdatadir() shouldn't consider subdir == NULL as a reason to
>fail rather than trying mkdir_p.  Indeed, if anything the opposite:
>when subdir isn't NULL the immediately prior directory level should
>exist already.
>

Right. In fact, I can't see any good reason to call mkdir and then 
mkdir_p at all. See my patch from this afternoon.

>
>I concur with Peter's gripe that a perror() or two wouldn't hurt here.
>


Sure. Of course, the reason I put this on my web site and asked for 
eyeballs was to try to catch some of this sort of stuff before the 
program went into the tree :-)

cheers

andrew



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Executable files in CVS
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Executable files in CVS