From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b00d69cd9e470207 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-21 08:27:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Newsgroups: comp.unix.tru64 Subject: Re: stat oddities References: <3BFA7651.8060502@athena.polito.it> <3BFBCAA9.368C1718@sql.de> Organization: Massachvsetts Institvte of Technology From: jfc@mit.edu (John F Carr) Date: 21 Nov 2001 16:27:29 GMT Message-ID: <3bfbd5f1$0$3959$b45e6eb0@senator-bedfellow.mit.edu> NNTP-Posting-Host: NERD-XING.MIT.EDU X-Trace: 1006360049 senator-bedfellow.mit.edu 3959 18.7.16.74 Xref: archiver1.google.com comp.unix.tru64:5863 In article <3BFBCAA9.368C1718@sql.de>, Joerg Bruehe wrote: >Hi! > >Matteo Catanese wrote: >> >> Tru64 5.1 >> >> software:leonardo ~ > mkdir foo >> software:leonardo ~ > chmod 000 foo/ >> software:leonardo ~ > ./stat foo/. >> foo/.: >> [ ... output deleted - J.B. ] >> >> 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: > >Given the requirement that "." is a link to the directory itself, >the "stat" program might have the cleverness to translate >'foo/.' to 'foo' before doing the work. stat won't do that sort of transformation, but the kernel pathname lookup probably isn't written to check permission for lookup of ".". -- John Carr (jfc@mit.edu)