Re: rename(2) and readonly source dir

2013-05-08 Thread Ted Unangst
On Tue, May 07, 2013 at 22:44, Mike Small wrote: > The rename system call in OpenBSD will error with EACCES if you try to > rename a read only directory (test done in non-sticky dir): > So I guess this is one of the ways a Unix system is allowed to work, if > I'm reading IEEE 1003.1 as intended: >

rename(2) and readonly source dir

2013-05-07 Thread Mike Small
The rename system call in OpenBSD will error with EACCES if you try to rename a read only directory (test done in non-sticky dir): $ mkdir testdir $ chmod 555 testdir $ mv testdir tdir mv: rename testdir to tdir: Permission denied $ ls -ld . drwxr-xr-x 4 smallm smallm 512 May 7 22:12 ./ I als