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


Message #202 received at 10489 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 10489 <at> debbugs.gnu.org, Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Subject: Re: bug#10489: 24.0.92;
	dired-do-copy may create infinite directory hierarchy
Date: Mon, 16 Jan 2012 16:27:41 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>>> E.g. (equal (file-attributes file1) (file-attributes file2))?
>
>> We need at least the `file-truename' call. 
>
>> (equal (file-attributes (file-truename (expand-file-name file1)))
>>        (file-attributes (file-truename (expand-file-name file2))))))
>
> Why??!?!

albinus <at> slbhn1:[1187] touch 1
albinus <at> slbhn1:[1188] ln -s 1 2
albinus <at> slbhn1:[1189] ll 1 2
-rw-r--r-- 1 albinus smc3 197 Jan 16 16:22 1
lrwxrwxrwx 1 albinus smc3   1 Jan 16 16:22 2 -> 1

(file-attributes "/home/albinus/1") =>
(nil 1 441 823 (20244 16570) (20244 16570) (20244 16570) 197 "-rw-r--r--" nil 2708784 19)

(file-attributes "/home/albinus/2") =>
("1" 1 441 823 (20244 16577) (20244 16577) (20244 16577) 1 "lrwxrwxrwx" nil 2727905 19)

>         Stefan

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.