Re: [HACKERS] ipcclean in 8.1 broken?
Started by Bruce Momjianover 20 years ago1 messagespatches
pgman wrote:
Christopher Kings-Lynne wrote:
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...I applied the attached patch to CVS HEAD and 8.1.X. It looks at LOGNAME
only if USER is not set.
OK, updated patch that tries to use 'id' first. Applied. Backpatch to 8.1.X.
--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com
+ If your life is a hard drive, Christ can be your backup. +
Attachments:
/bjm/difftext/plainDownload+15-15
Import Notes
Reply to msg id not found: