Subject: Re: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy

From: Michael Albinus <[email-masked]>
Date: Sun, 15 Jan 2012 13:40:30 +0100

Thierry Volpiatto <[email-masked]> 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.