From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy Date: Mon, 16 Jan 2012 16:40:34 -0500 Message-ID: References: <87mx9su32g.fsf@web.de> <87d3anogf5.fsf@gmail.com> <011AEED9E81C4DEFA6B1E03B0F57F28F@us.oracle.com> <878vlbljnc.fsf@gmx.de> <8739bj8mu1.fsf@gmail.com> <87fwfjo24c.fsf@gmx.de> <87pqen76p4.fsf@gmail.com> <83fwfik92e.fsf@gnu.org> <87mx9q1sz7.fsf@gmail.com> <87vcodm8ns.fsf@gmx.de> <87pqekopb5.fsf@gmail.com> <87hazwoost.fsf@gmail.com> <87ty3w9639.fsf@gmx.de> <8762gckckt.fsf@gmail.com> <87pqek9269.fsf@gmx.de> <87r4z0yqfx.fsf@gmail.com> <871uqzn3bc.fsf@gmx.de> <871uqz651u.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326750080 7298 80.91.229.12 (16 Jan 2012 21:41:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 21:41:20 +0000 (UTC) Cc: 10489@debbugs.gnu.org, Thierry Volpiatto To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 16 22:41:13 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RmuIj-0006I1-33 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 22:41:13 +0100 Original-Received: from localhost ([::1]:54905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmuIi-0003RS-Ko for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jan 2012 16:41:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmuIe-0003R1-H2 for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 16:41:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmuIc-0006hD-Jq for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 16:41:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmuIc-0006h9-II for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 16:41:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RmuJW-0001Wh-Fk for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2012 16:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2012 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10489-submit@debbugs.gnu.org id=B10489.13267501005834 (code B ref 10489); Mon, 16 Jan 2012 21:42:02 +0000 Original-Received: (at 10489) by debbugs.gnu.org; 16 Jan 2012 21:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:60742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmuJ4-0001Vw-Nn for submit@debbugs.gnu.org; Mon, 16 Jan 2012 16:41:38 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:48607) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmuJ1-0001Vo-FQ for 10489@debbugs.gnu.org; Mon, 16 Jan 2012 16:41:33 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q0GLeYLm002539; Mon, 16 Jan 2012 16:40:34 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id A047E13002A; Mon, 16 Jan 2012 16:40:34 -0500 (EST) In-Reply-To: <871uqz651u.fsf@gmx.de> (Michael Albinus's message of "Mon, 16 Jan 2012 16:27:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4103=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4103> : streams <720424> : uri <1048062> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55804 Archived-At: >>>> 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@slbhn1:[1187] touch 1 > albinus@slbhn1:[1188] ln -s 1 2 > albinus@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) Ah, right. So we don't need the full semantics of file-truename, but we do need to force "follow the symlink, if any". `file-truename' is overkill, but I guess it's OK for now since I don't think we have a quick replacement for this case. Stefan