GNU bug report logs - #10489
24.0.92; dired-do-copy may create infinite directory hierarchy

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Thu, 12 Jan 2012 19:36:01 UTC

Severity: important

Tags: patch

Merged with 11130

Found in version 24.0.92

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Cc: 10489 <at> debbugs.gnu.org
Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy
Date: Fri, 13 Jan 2012 13:48:30 +0100
Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:

> Hi Michael,

Hi Thierry,

> I want to only suppress the use of:
> (copy-directory "/sudo:host:/home/user/Test" "/home/user/Test")

Do you know `tramp-default-proxies-alist'? With that toy, "/sudo:host:"
can be another machine but your local one. You really don't know,
without going into deep Tramp interna.

> (copy-directory "/sudo:host:/home/user/Test" "/sudo:host:/home/user/Test")

That would be reasonable to suppress. But you don't need a special
remote test for this. Just compare the results of `file-truename', as
suggested by Eli. This shall work also for remote files automagically.

If somebody wants to apply

(copy-directory "/ssh:host:/home/user/Test" "/scp:host:/home/user/Test")

you can't suppress. Same for using different hostnames which are aliases
for the same machine, etc pp.

Best regards, Michael.




This bug report was last modified 13 years and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.