Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!wuarchive!wupost!kuhub.cc.ukans.edu!michal From: MICHAL@kuhub.cc.ukans.edu (Merlin The Magician) Newsgroups: comp.sys.apollo Subject: stat(&buf) vs file ownership Message-ID: <9441@kuhub.cc.ukans.edu> Date: 22 Aug 89 22:35:21 GMT Organization: University of Kansas Academic Computing Services Lines: 27 OK, I am calling the stat C function under bsd4.2 and SR9 for a file that is ls -ld foo d---rwx--- 1 1024 Aug 22 16:46 foo The ACL are as follows: foo.group.org.% pgndcalrse %.sys_admin.%.% pgndcalrse I am with uid that is sys_admin. Although the file 'foo' is the home dir of user 'foo', calling stat (&buf) I get the correct size (1024) mod/cre/acc date/time, but the uid and gid are garbage. At best the gid is that if sys_admin. Is this fixed in SR10 and bsd4.3 ? How can I avoid it now ? --Merlin +------------------------------+----------------------------------------------+ | Michal Chmielewski \ The inherent vice of capitalism is the | | Academic Computing Services \ unequal sharing of blessings; the | | University of Kansas \ inherent virtue of socialism is the | | Lawrence, KS 66045 \ equal sharing of miseries. | | Internet: michal@kuhub.cc.ukans.edu - Winston Churchill | | BitNet : michal@ukanvax.bitnet \ | +-------------------------------------+---------------------------------------+