🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46521

glibc-1.09 (getgruid?)

#46521
From: Jeremy Pye
Date: Fri, 11 Nov 1994 15:58
33 lines
1658 bytes
I have just installed glibc-1.09 on a sunos4.1.3 without
gnu linker or gnu asm, using gcc-2.6.0

My question is about the getgruid function. I built the
library, no problem, then typed: make tests, and it
failed on 

>grp/testgrp 
getpwuid: Error 0

I was compiling as a normal user. If I run grp/testgrp as
root (uid=0) then it works : i.e

My login name is root.
My uid is 0.
My home directory is /.
My default shell is /bin/csh.
My default group is daemon (1).
The members of this group are:


Is this correct. Do programs using getpwuid/getgrgid, have to 
be given 'setuid' access bits. This is not the case if I compile
without the glibc.

Thanks for responces. Jeremy

---
C. Jeremy Pye                        Tel:  +44(0)603 593220
NonLinear Image Processing Group     Fax:  +44(0)603 507720
School Of Information Systems      Email: cjp@sys.uea.ac.uk
UEA, Norwich NR4 7TJ, UK.                         
WWW server: http://www.sys.uea.ac.uk/Teaching/Staff/cjp.html
Technical Details
Message-ID: <3a04aa$iji@cpca3.uea.ac.uk>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!gatech!udel!news.sprintlink.net!pipex!sunsite.doc.ic.ac.uk!cpca3.uea.ac.uk!news

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,1df7f3709212ce75,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-11-11 11:39:09 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!gatech!udel!news.sprintlink.net!pipex!sunsite.doc.ic.ac.uk!cpca3.uea.ac.uk!news
From: cjp@sys.uea.ac.uk (Jeremy Pye)
Newsgroups: gnu.gcc.help
Subject: glibc-1.09 (getgruid?)
Date: 11 Nov 1994 15:58:02 GMT
Organization: University Of East Anglia, Norwich, UK.
Lines: 36
Message-ID: <3a04aa$iji@cpca3.uea.ac.uk>
Reply-To: cjp@sys.uea.ac.uk
NNTP-Posting-Host: image2.sys.uea.ac.uk