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: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 10489 <at> debbugs.gnu.org, Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy
Date: Mon, 27 Feb 2012 05:39:30 -0500
>> Tramp's knowledge of the semantics of "/sudo::" lets it simply turn
>> (file-equal-p "/sudo::/foo" "file:///foo") into (file-equal-p "/foo"
>> "file:///foo"), after which the url-handler-mode can do the same kind of
>> trivial reasoning.
> Hmm. Yes. How simple :-)

I suspect this simple approach wouldn't quite work in various corner
cases (e.g. when testing (file-equal-p "/sudo::/foo/bar" "file:///baz")
and where /foo/bar is a symlink to /baz, but where /foo is only
accessible to root ;-)


        Stefan




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.