Re: ipcclean in 8.1 broken?

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: ipcclean in 8.1 broken?
Дата
Msg-id 44065152.10700@paradise.net.nz
обсуждение исходный текст
Ответ на Re: ipcclean in 8.1 broken?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne wrote:
>> I wonder if there could be a potential problem with using this approach
>> -
>> checking on $USER == root.
>>
>> Although it is a common practice, I think a superuser does not have to
>> be root.
> 
> 
> Yes, like the 'toor' account in FreeBSD... (disabled by default though)
> 

Might be better to check if uid == 0, however there are some traps here 
too as the most convenient methd ('id -u') is not support everywhere 
(e.g Solaris 8). I think I used awk or sed on the plain old 'id' output 
last time something like this came up.

Cheers

Mark


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: ipcclean in 8.1 broken?
Следующее
От: "John"
Дата:
Сообщение: display processing time?