* rename() a directory over a symlink @ 2009-08-03 22:31 Timo Sirainen 2009-08-04 12:46 ` Arnd Bergmann 0 siblings, 1 reply; 2+ messages in thread From: Timo Sirainen @ 2009-08-03 22:31 UTC (permalink / raw) To: linux-kernel Is there a reason why it's not allowed? Would it be difficult to implement it? Seems like it shouldn't be much different from renaming a file over a symlink. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rename() a directory over a symlink 2009-08-03 22:31 rename() a directory over a symlink Timo Sirainen @ 2009-08-04 12:46 ` Arnd Bergmann 0 siblings, 0 replies; 2+ messages in thread From: Arnd Bergmann @ 2009-08-04 12:46 UTC (permalink / raw) To: Timo Sirainen; +Cc: linux-kernel On Tuesday 04 August 2009, you wrote: > Is there a reason why it's not allowed? Would it be difficult to > implement it? Seems like it shouldn't be much different from renaming a > file over a symlink. It's in the standard we are following, http://www.opengroup.org/onlinepubs/009695399/functions/rename.html: "If the old argument points to the pathname of a directory, the new argument shall not point to the pathname of a file that is not a directory." http://www.opengroup.org/onlinepubs/009695399/utilities/mv.html: "In the second synopsis form, mv shall move each file named by a source_file operand to a destination file in the existing directory named by the target_dir operand, or referenced if target_dir is a symbolic link referring to an existing directory. The destination path for each source_file shall be the concatenation of the target directory, a single slash character, and the last pathname component of the source_file. This second form is assumed when the final operand names an existing directory." Arnd <>< ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-04 12:46 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-08-03 22:31 rename() a directory over a symlink Timo Sirainen 2009-08-04 12:46 ` Arnd Bergmann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox