From: Arnd Bergmann <arnd@arndb.de>
To: Timo Sirainen <tss@iki.fi>
Cc: linux-kernel@vger.kernel.org
Subject: Re: rename() a directory over a symlink
Date: Tue, 4 Aug 2009 14:46:35 +0200 [thread overview]
Message-ID: <200908041446.35126.arnd@arndb.de> (raw)
In-Reply-To: <1249338691.1216.136.camel@timo-desktop>
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 <><
prev parent reply other threads:[~2009-08-04 12:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 22:31 rename() a directory over a symlink Timo Sirainen
2009-08-04 12:46 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908041446.35126.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tss@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox