From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16984: dired-do-rename susceptible to .../~/... hijack Date: Sun, 23 Oct 2016 09:50:30 +0300 Message-ID: <837f8zpnih.fsf@gnu.org> References: <87eh2aq60w.fsf@jidanni.org> <87pomrst3z.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477205482 26967 195.159.176.226 (23 Oct 2016 06:51:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2016 06:51:22 +0000 (UTC) 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 Sun Oct 23 08:51:18 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 1byCcf-0005Vl-3t for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2016 08:51:09 +0200 Original-Received: from localhost ([::1]:39942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byCch-0007B5-GG for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2016 02:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byCcb-0007Az-Kg for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 02:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byCcY-0007l9-Hr for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 02:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59957) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byCcY-0007l3-FT for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byCcY-0001Hc-9E for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 02:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2016 06:51:02 +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: confirmed Original-Received: via spool by 16984-submit@debbugs.gnu.org id=B16984.14772054454906 (code B ref 16984); Sun, 23 Oct 2016 06:51:02 +0000 Original-Received: (at 16984) by debbugs.gnu.org; 23 Oct 2016 06:50:45 +0000 Original-Received: from localhost ([127.0.0.1]:47122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byCcH-0001H4-Bb for submit@debbugs.gnu.org; Sun, 23 Oct 2016 02:50:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byCcF-0001Gl-JC for 16984@debbugs.gnu.org; Sun, 23 Oct 2016 02:50:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byCc7-0007fs-8A for 16984@debbugs.gnu.org; Sun, 23 Oct 2016 02:50:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byCc7-0007fl-1v; Sun, 23 Oct 2016 02:50:35 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2436 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1byCc6-00060y-92; Sun, 23 Oct 2016 02:50:34 -0400 In-reply-to: <87pomrst3z.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:124871 Archived-At: > From: npostavs@users.sourceforge.net > Date: Sat, 22 Oct 2016 22:21:20 -0400 > Cc: 16984@debbugs.gnu.org > > The essential problem seems to be that there is no way to escape > filenames from substitute-in-file-name to protect a file named "~", > therefore read-file-name-default can never return a filename in a > directory with that name. What about the "/:" quoting? It works for me, when I type "/:" before the name of the file which has a '~' character embedded in it.