rename and chmod (was: cp -p)

[ Available lists | Index of freebsd-questions | Month of Feb 2008 | Week of 8 Feb 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Pietro Cerutti <gahr@gahr.ch>
Date
8 Feb 2008 09:25:53
Subject
rename and chmod (was: cp -p)
Message-ID
47AC2018.6010403@gahr.ch


[ Hide this part ]
Ok, my view is getting clearer ;-)


my problem in understanding the semantics of mv, cp -p and the rename(2)
function seems to be related to the terminology used in chmod(1) man page.

This is the explanation of setuid (the same holds for setgid):

"Directories with this bit set will force all files and subdirectories
created in them to be owned by the directory owner and not by the uid of
the creating process, if the underlying file system supports this feature"

Now, from a logical point of view, why moving a file into a directory
doesn't fall into the "created into them" case?


--
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



[ Show this part (application/pgp-signature) ]

Elapsed time: 0.102 seconds