Re: ipcclean in 8.1 broken? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: ipcclean in 8.1 broken?
Date
Msg-id 200603031800.k23I0xI14776@candle.pha.pa.us
Whole thread Raw
In response to Re: ipcclean in 8.1 broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ipcclean in 8.1 broken?
Re: ipcclean in 8.1 broken?
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Chris said he did:
> >> Well all I did to fix it on FreeBSD was to remove the '-o "$LOGNAME" =
> >> 'root'' bit...
> > so I figured the patch would help, no?
> 
> No, because there's no good reason to suppose that $USER wouldn't be set.

But if USER is set, why check LOGNAME?

> I think we should remove that entire code block, and instead check for a
> zero value of EffectiveUser after doing the id bit.
> 
> (I'm not finding it right now, but I'm pretty sure that the SUS
> specifies that numeric userid == 0 for superuser, whereas "root" is not
> required to be the name, so this would be more correct anyway.)

Can we assume 'id' is on all unix systems?

--  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. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ipcclean in 8.1 broken?
Next
From: Stephan Szabo
Date:
Subject: Re: Foreign keys for non-default datatypes