View Single Post

   
  #2 (permalink)  
Old 01-12-2008, 05:32 AM
Goran Larsson
 
Posts: n/a
Default Re: Why Doesn't Sun Fix This Frigging Bug???

In article <3f671ca0$1_1@127.0.0.1>, Rhugga <rhugga@yahoo.com> wrote:

> Why doesn't Sun fix this damn bug, so that it is POSIX compliant?


> #mkdir data
> #chmod 000 data
> #ls data/.
> #echo $?
> 0


$ uname -rs
SunOS 5.8
$ mkdir data
$ chmod 000 data
$ ls data/.
data/.: Permission denied
$ echo $?
2
$

> This command should fail. HP fixed this bug 2 years ago.


Did you test as uid 0 (your # prompt indicates that you do)?
Does POSIX say that even uid 0 should get an error in your example?
If so, why should your example be special compared with all
other situations where privileges are ignored for uid 0?

--
Göran Larsson http://www.mitt-eget.com/
Reply With Quote