From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b00d69cd9e470207,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-20 07:30:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsbo.news.garr.it!NewsITBone-GARR!newsfeed.cineca.it!menelao.polito.it!not-for-mail From: Matteo Catanese Newsgroups: comp.unix.tru64 Subject: stat oddities Date: Tue, 20 Nov 2001 16:27:13 +0100 Organization: Unknown Message-ID: <3BFA7651.8060502@athena.polito.it> NNTP-Posting-Host: sardanap.polito.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: menelao.polito.it 1006269966 23237 130.192.3.3 (20 Nov 2001 15:26:06 GMT) X-Complaints-To: usenet@news.polito.it NNTP-Posting-Date: 20 Nov 2001 15:26:06 GMT User-Agent: Mozilla/5.0 (X11; U; Linux alpha; en-US; rv:0.9.5) Gecko/20011015 X-Accept-Language: en-us Xref: archiver1.google.com comp.unix.tru64:5853 Tru64 5.1 software:leonardo ~ > mkdir foo software:leonardo ~ > chmod 000 foo/ software:leonardo ~ > ./stat foo/. foo/.: inode 38754 dev 2877,258714 links 2 size 8192 directory mode is --------- uid 201 (software) gid 19 (adm) change time - Wed Nov 14 15:17:39 2001 <1005747459> access time - Wed Nov 14 15:17:30 2001 <1005747450> modify time - Wed Nov 14 15:17:30 2001 <1005747450> Since 'foo' does not give read and execute permissions to the uid that executes stat(), it therefore follows that a stat of 'foo/.' should FAIL: This breaks "make check" of courier imap On digital unix 4.0x ~> mkdir foo ~> chmod 000 foo ~> ./stat foo/. Cannot stat "foo/." foo/.: Permission denied