From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#20249: tramp: tramp-flush-directory-property loops infinitely Date: Fri, 03 Apr 2015 05:42:21 +0000 Message-ID: <87sichu5s2.fsf@violet.siamics.net> References: <20150403.093121.1376099698840392615.arakawa@pp.iij4u.or.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1428039803 13030 80.91.229.3 (3 Apr 2015 05:43:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 05:43:23 +0000 (UTC) To: 20249@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 07:43:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YduNq-0002nB-Vp for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 07:43:11 +0200 Original-Received: from localhost ([::1]:60961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YduNq-0002Vc-63 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 01:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YduNm-0002VX-7t for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 01:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YduNj-0000pk-13 for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 01:43:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YduNi-0000pE-8F for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 01:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YduNi-00040C-1C for bug-gnu-emacs@gnu.org; Fri, 03 Apr 2015 01:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Apr 2015 05:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20249 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20249-submit@debbugs.gnu.org id=B20249.142803975515347 (code B ref 20249); Fri, 03 Apr 2015 05:43:01 +0000 Original-Received: (at 20249) by debbugs.gnu.org; 3 Apr 2015 05:42:35 +0000 Original-Received: from localhost ([127.0.0.1]:43580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YduNG-0003zS-S2 for submit@debbugs.gnu.org; Fri, 03 Apr 2015 01:42:35 -0400 Original-Received: from fely.am-1.org ([78.47.74.50]:37028) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YduNE-0003zI-Fb for 20249@debbugs.gnu.org; Fri, 03 Apr 2015 01:42:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=eKEYMKuKL92dflbht7EIRMHcGd+8LnrmM2FpVF+iODE=; b=mzm5Kyk7SLlpiJoaTYUG49sJZpPG0UQdZNFKDY9EGPNZaqgGdtqW7Ylq4OvFj8TzxmhcdUywJg+qw9z1RNKoEJRQh2EYKAUWs84wYGFKqf4+Q5bH0cz4GbrQF5app4rjn3fx68MvSbBTSV3YnK7G512cJSrqDnSsv0rRlIhY7EE=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YduNC-00053R-0B for 20249@debbugs.gnu.org; Fri, 03 Apr 2015 05:42:30 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YduN5-00058G-22 for 20249@debbugs.gnu.org; Fri, 03 Apr 2015 12:42:23 +0700 In-Reply-To: <20150403.093121.1376099698840392615.arakawa@pp.iij4u.or.jp> (arakawa@pp.iij4u.or.jp's message of "Fri, 03 Apr 2015 09:31:21 +0900 (=?UTF-8?Q?=E6=9D=B1=E4=BA=AC?= (=?UTF-8?Q?=E6=A8=99=E6=BA=96=E6=99=82?=))") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:101147 Archived-At: >>>>> Koichi Arakawa writes: [=E2=80=A6] > @@ -188,7 +188,8 @@ defun tramp-flush-directory-property (key directory) > (truename (tramp-get-file-property key directory "file-truename" nil)= )) > ;; Remove file properties of symlinks. > (when (and (stringp truename) > - (not (string-equal directory truename))) > + (not (string-equal directory truename)) > + (not (string-equal (concat directory "/") truename))) > (tramp-flush-directory-property key truename)) > (tramp-message key 8 "%s" directory) > (maphash I believe the above should use file-name-as-directory instead of a plain concat. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A