From: Sven Joachim <svenjoac@gmx.de>
To: 5982@debbugs.gnu.org
Subject: bug#5982: 23.1.96; Dired regression - recursive copies turn symlinks into regular files
Date: Tue, 20 Apr 2010 15:49:33 +0200 [thread overview]
Message-ID: <87wrw2i68i.fsf@turtle.gmx.de> (raw)
In-Reply-To: <877ho2jx07.fsf@turtle.gmx.de> (Sven Joachim's message of "Tue, 20 Apr 2010 11:26:00 +0200")
On 2010-04-20 11:26 +0200, Sven Joachim wrote:
> Suppose we have the following directory in dired:
>
> ,----
> | /tmp/foo:
> | total used in directory 4 available 1674380
> | drwxr-xr-x 2 sven sven 80 Apr 20 11:12 .
> | drwxrwxrwt 14 root root 300 Apr 20 11:12 ..
> | -rw-r--r-- 1 sven sven 6 Apr 20 11:09 bar
> | lrwxrwxrwx 1 sven sven 3 Apr 20 11:12 bar2 -> bar
> `----
>
> Now type ^ to cd to the parent directory, move to the "foo" line and
> press "C /tmp/foo2 RET yes" (confirming the recursive copy and creating
> /tmp/foo2) and switch to the new directory. It looks like this:
>
> ,----
> | /tmp/foo2:
> | total used in directory 8 available 1674380
> | drwxr-xr-x 2 sven sven 80 Apr 20 11:12 .
> | drwxrwxrwt 14 root root 300 Apr 20 11:12 ..
> | -rw-r--r-- 1 sven sven 6 Apr 20 11:09 bar
> | -rw-r--r-- 1 sven sven 6 Apr 20 11:09 bar2
> `----
>
> This is a regression from Emacs 23.1 and 22.3 where the symlink would be
> copied as such instead of turning into a regular file.
Bisecting shows that this problem first occured in revision 97979 when
dired-copy-file-recursive started to use the new copy-directory command
(added in revision 97978). The latter just calls copy-file for
non-directories, and copy-file has no option to preserve symlinks.
Sven
next prev parent reply other threads:[~2010-04-20 13:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 9:26 bug#5982: 23.1.96; Dired regression - recursive copies turn symlinks into regular files Sven Joachim
2010-04-20 13:49 ` Sven Joachim [this message]
2010-04-20 14:54 ` Chong Yidong
2010-04-20 15:10 ` Michael Albinus
2010-04-20 22:16 ` Michael Albinus
2010-04-20 22:29 ` Chong Yidong
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=87wrw2i68i.fsf@turtle.gmx.de \
--to=svenjoac@gmx.de \
--cc=5982@debbugs.gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.