delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/03/01:05:22

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: standards and 'setgid' function
Date: Wed, 02 Jan 2002 22:56:39 -0700
Organization: Systematic Software
Lines: 31
Message-ID: <25h73usvp0dqmphf5lne7boe4has4k5ig9@4ax.com>
References: <slrn DOT pl DOT a3649e DOT j1 DOT Hary AT localhost DOT localdomain> <a0v7uf$am4$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: h-207-148-144-79.dial.cadvision.com
Mime-Version: 1.0
X-Trace: news3.cadvision.com 1010037400 4141 207.148.144.79 (3 Jan 2002 05:56:40 GMT)
X-Complaints-To: news AT cadvision DOT com
NNTP-Posting-Date: Thu, 3 Jan 2002 05:56:40 +0000 (UTC)
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On 2 Jan 2002 15:11:11 GMT, Hans-Bernhard Broeker
<broeker AT physik DOT rwth-aachen DOT de> wrote:

>HARY <Hary AT address DOT is DOT invalid> wrote:
>> Hi,
>
>> While looking in docs for 'setgid' description i found that linux man
>> says: "CONFORMING TO: SVr4, SVID", but djgpp info states: "Portability:
>> not ANSI, POSIX"
>
>> These don't match, so who is right here? And what "SVID" is?
>
>They're both right.  setgid is specified by POSIX, but Linux only
>follows the exact details of that specification if you explicitly ask
>for that (see the text of their man page).  By default, it follows
>"System V" semantics.
>
>DJGPP implements POSIX behaviour (but usually fails the call, as if
>you were on a system were only one group was defined at all).
>
>SVID is "System V Interface Definition" or something equivalent, IIRC.

DJGPP only returns and accepts 42 for uid or gid -- so only
setuid(getuid()) and setgid(getgid()) are valid! 

Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada
-- 
Brian DOT Inglis AT CSi DOT com 	(Brian dot Inglis at SystematicSw dot ab dot ca)
    fake address		use address above to reply
tosspam AT aol DOT com abuse AT aol DOT com abuse AT yahoo DOT com abuse AT hotmail DOT com abuse AT msn DOT com abuse AT sprint DOT com abuse AT earthlink DOT com abuse AT cadvision DOT com abuse AT ibsystems DOT com uce AT ftc DOT gov
						spam traps

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019