Subject: Re: bug#11696: Bug found in Putty linux

From: Eric Blake <[email-masked]>
Date: Wed, 13 Jun 2012 10:56:17 -0600

tag 11696 notabug
thanks

On 06/13/2012 04:45 AM, Vai Dy wrote:
> Hi,
> 
>    Currently i'm using putty 0-55 version. Just clarify me whether its a
> bug or not .
> 
> 1)Creating a directory
> 2)Removing all the permission like read, write and execute for owners ,
> groups and users.
> 3)If i try to delete the file what would be the output ?

Thanks for the report.  It helps if you show the actual commands you
typed, the actual results you got, and what you were expecting instead,
before claiming that something is a bug.  Although your details are
sparse, I think you are asking about:

$ mkdir foo
$ touch bar
$ chmod a-rwx foo bar
$ ls -ld foo bar .
----------. 1 eblake eblake    0 Jun 13 10:51 bar
d---------. 2 eblake eblake 4096 Jun 13 10:25 foo
drwxr-xr-x. 22 eblake eblake 4096 Jun 13 10:52 .
$ rm -rf foo bar
$ echo $?
0

That is correct POSIX behavior, and makes perfect sense (deleting a file
does not require permissions on the file itself, but on the container
that you are deleting it from, and '.' is still writable).  I'm going to
close this as not a bug for now, but feel free to continue to post if
you have more details, and we can reopen if necessary.

-- 
Eric Blake   [email-masked]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org