Re: ipcclean in 8.1 broken?

Christopher Kings-Lynne <chriskl@familyhealth.com.au>

From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Date: 2006-03-02T01:27:17Z
Lists: pgsql-hackers
>> if [ "$USER" = 'root' -o "$LOGNAME" = 'root' ]
>>
>> Always fails because even tho $USER is set to 'pgsql' when su'ed,
>> $LOGNAME is still root.
>>
>> This is on FreeBSD 4.9
> 
> It seems to work on Linux; apparently there are different behaviors of su.  Do 
> you have a suggestion for resolving this?

Well all I did to fix it on FreeBSD was to remove the '-o "$LOGNAME" = 
'root'' bit...

Chris