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:10:57 PST Message-ID: <3BFBCAA9.368C1718@sql.de> Date: Wed, 21 Nov 2001 16:39:21 +0100 From: Joerg Bruehe Organization: SQL Datenbanksysteme GmbH X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: stat oddities References: <3BFA7651.8060502@athena.polito.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: server1.software-ag.de X-Trace: 21 Nov 2001 16:39:31 CET, server1.software-ag.de X-Complaints-To: usenet@ivm.net X-Admin-Comment: X-NNTP-Posting... are valid if present Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newscore.gigabell.net!blackbush.xlink.net!blackbush.de.kpnqwest.net!news-in.ivm.net!news.ivm.net!server1.software-ag.de Xref: archiver1.google.com comp.unix.tru64:5861 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. Have you tried any tracing facility (sorry, I do not remember what it is called on Tru64 - "truss", "strace", ...) ? Regards, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: joerg@sql.de