Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Joerg Bruehe <joerg@sql.de>
Subject: Re: stat oddities
Date: Wed, 21 Nov 2001 16:39:21 +0100	[thread overview]
Message-ID: <3BFBCAA9.368C1718@sql.de> (raw)
In-Reply-To: 3BFA7651.8060502@athena.polito.it

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


  reply	other threads:[~2001-11-21 15:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-20 15:27 stat oddities Matteo Catanese
2001-11-21 15:39 ` Joerg Bruehe [this message]
2001-11-21 16:27   ` John F Carr
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox