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: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 10489 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy
Date: Sun, 15 Jan 2012 18:28:08 +0100
Thanks Michael for explanation.

Michael Albinus <michael.albinus <at> gmx.de> writes:

> Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
>
>> How do you compare two files with file-attributes?
>> Locally, equal is ok, but when using /sudo::.. the gid-change, inode
>> and device-num are differents:
>
> This must be implemented by respective file name handlers, like
> `tramp-handle-file-equal-p', `ange-ftp-file-equal-p', `url-file-equal-p' ...
>
>> /sudo::/home/thierry/Test
>>
>> (:type t :links 2 :uid "thierry" :gid "thierry" :access-time
>>        (20241 21214)
>>        :modif-time
>>        (20241 20731)
>>        :status
>>        (20241 20731)
>>        :size 4096 :mode "drwxrwxr-x" :gid-change t 
>>        :inode (70 . 10917)
>>        :device-num (-1 . 0))
>
> `tramp-*-handle-file-attributes' create virtual inodes and device
> numbers. They cannot be used directly for comparison.
>
> Same for `ange-ftp-file-attributes'.
>
>> Thanks.
>
> Best regards, Michael.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




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.