Re: [BUG] directory renaming/removal

2001-02-02 Thread Marko Kreen
I must say that I dont know what the standards say, but... On Fri, Feb 02, 2001 at 01:28:28PM +, David Howells wrote: > (1) Linux can't rename directories that are marked as read-only. This is > strange because the directories actually being modified _do_ have write > permission.

[BUG] directory renaming/removal

2001-02-02 Thread David Howells
Run the following script (It's been tried on linux-2.2.x and linux-2.4.x): #!/bin/sh cd /tmp mkdir x cd x mkdir x y z strace -etrace=rename,mkdir,rmdir,chmod mv x z echo - chmod -w y strace -etrace=rename,mkdir,rmdir,chmod mv y z The output: rename("x", "z/x") = 0

[BUG] directory renaming/removal

2001-02-02 Thread David Howells
Run the following script (It's been tried on linux-2.2.x and linux-2.4.x): #!/bin/sh cd /tmp mkdir x cd x mkdir x y z strace -etrace=rename,mkdir,rmdir,chmod mv x z echo - chmod -w y strace -etrace=rename,mkdir,rmdir,chmod mv y z The output: rename("x", "z/x") = 0

Re: [BUG] directory renaming/removal

2001-02-02 Thread Marko Kreen
I must say that I dont know what the standards say, but... On Fri, Feb 02, 2001 at 01:28:28PM +, David Howells wrote: (1) Linux can't rename directories that are marked as read-only. This is strange because the directories actually being modified _do_ have write permission.