From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#16984: dired-do-rename susceptible to .../~/... hijack Date: Thu, 08 Dec 2016 18:03:32 +0100 Message-ID: <87fulywdy3.fsf@gmx.de> References: <87eh2aq60w.fsf@jidanni.org> <87pomrst3z.fsf@users.sourceforge.net> <837f8zpnih.fsf@gnu.org> <87pomjrita.fsf@users.sourceforge.net> <83pomjr63z.fsf@gnu.org> <87eg2zb860.fsf@gmx.de> <87h97vqhf3.fsf@users.sourceforge.net> <874m3vazx2.fsf@gmx.de> <87wpgoowsx.fsf@users.sourceforge.net> <874m2jpl8c.fsf@gmx.de> <87a8c7fazs.fsf@users.sourceforge.net> <8760muu8wq.fsf@gmx.de> <874m2efpso.fsf@users.sourceforge.net> <87twaefows.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481216681 26506 195.159.176.226 (8 Dec 2016 17:04:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2016 17:04:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 16984@debbugs.gnu.org, jidanni@jidanni.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 08 18:04:35 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF279-0004bH-Gh for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Dec 2016 18:04:11 +0100 Original-Received: from localhost ([::1]:47791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF27D-0007Tp-CT for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Dec 2016 12:04:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF271-0007Rc-RS for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2016 12:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF271-0002AS-3h for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2016 12:04:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cF271-0002AO-0W for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2016 12:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cF26z-0005LQ-SG for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2016 12:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2016 17:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch confirmed Original-Received: via spool by 16984-submit@debbugs.gnu.org id=B16984.148121663820535 (code B ref 16984); Thu, 08 Dec 2016 17:04:01 +0000 Original-Received: (at 16984) by debbugs.gnu.org; 8 Dec 2016 17:03:58 +0000 Original-Received: from localhost ([127.0.0.1]:34767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF26w-0005L8-3p for submit@debbugs.gnu.org; Thu, 08 Dec 2016 12:03:58 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:59905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF26u-0005Kv-TE for 16984@debbugs.gnu.org; Thu, 08 Dec 2016 12:03:57 -0500 Original-Received: from detlef.gmx.de ([87.146.62.109]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Ld0fQ-1cwvYs0jOS-00iC0x; Thu, 08 Dec 2016 18:03:34 +0100 In-Reply-To: <87twaefows.fsf@gmx.de> (Michael Albinus's message of "Thu, 08 Dec 2016 15:58:43 +0100") X-Provags-ID: V03:K0:iz0GbN0O/KC3Yvf7X13A/SI+mFWO7veYZXhf2vyPqptZfVmTTx5 yYB7nG9UW/JfsdtmJ45zWMTu/w+nZFYHvh2CZtOOXYtyQcy4RmEUevzFs8ApfZoGmsUYx9q I8ELcdWJ3q2F+orjYXEr60wJXlpNfsrME7JSJnPVRFb/d5hOy/bbiRpRdCW02/lcfYEARtj MhBKOtVCGSFt68MTCzkuA== X-UI-Out-Filterresults: notjunk:1;V01:K0:xrg4k6LGYkc=:Rgbla9Hl2BdTBc3nvsAGNE UPfYMBWpz2G/oPfQJArl4P1B8ECa8FFaEQ5YQwRjfN1og4ft3cUuGoQ8aTQRKNFtr0nEfd3PE pTJfGVLsJQVVtcUL+71pL9fxkT6QCUMvNUkc3k0VVmq+TG1C8qvmyk26Nja+1PesURSVo2CcL yYv76XmKxNXuJNY96n5zCLZJybY+IzfZLsRlhJZwgPraH7kMmNyvFzTr+WdIaYGSyrJ8jAt68 F+WNb+JygFOsOQg0d7uaJg4p2uYkQyT2B/JCAd9YxuoE8ygdx0KqLw/wfe5OhvBcedjm56Fx7 8kDrwTcd+CDz3wG+KWWzQgtPElcwiaCHkbxFnR7PSx+PRzQv2RpoBAHvGlMegVKkZ6V4nd8T/ FaqWd/tuUqaAGyCEOipMsRIpnc4E2woiC2qGfSo6gWPNZctFDugIE4oW/oIZLnB8TOCgfWut7 E0KZ++p4h5lemFet2VTBEHoVUpFOG6aWzWey/LahlwatG2SHtEiJNEzxgzGCD2AWCyRmp4oVu krlxDiwG4SehEeMpJnMrBL+FBPdipWiJeBNwZ2av6FglvyvpP6lzk5LZMJU1s4u9YAbJTY3uc VMdJts3PFYV20bf0d60c1NNOAM3uyUPrWOAnJhj/kIEZoq4lbYTVQQf7z7qIw/sqw0R/YfTGI xtdUu5E2BcHkYsEIJPOTwjXgRqNjCyetKUrL5HHgRSHlSfLDs8mrlXgs4gu7MR0DWziDMOHen paPShRFuFN1j9OJHxlSdZYUWdnErpsfztiZQ5DGD64gw4e3HBgxccqZPN4IwIHA84G/ubtmD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:126743 Archived-At: Michael Albinus writes: Hi Noam, >> Regarding `tramp-quoted-name-p', you should use (string-match "\\`/:" >> ...) or (string-prefix-p "/:" ...), not (string-match "^/:" ...) as the >> latter could get confused by newlines in filenames (of the first two, I >> find the `string-prefix-p' version clearer). I have committed now a patch to the master, providing file-name-quoted-p, file-name-quote and file-name-unquote. You might use them, instead of their tramp-* counterparts. I will add later on the text for the elisp manual, and for NEWS. Best regards, Michael.