Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Matteo Catanese <catanese@athena.polito.it>
Subject: stat oddities
Date: Tue, 20 Nov 2001 16:27:13 +0100	[thread overview]
Message-ID: <3BFA7651.8060502@athena.polito.it> (raw)

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






             reply	other threads:[~2001-11-20 15:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-20 15:27 Matteo Catanese [this message]
2001-11-21 15:39 ` stat oddities Joerg Bruehe
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