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#27986: 26.0.50; 'rename-file' can rename files without confirmation Date: Tue, 15 Aug 2017 05:35:51 +0300 Message-ID: <83efsdh81k.fsf@gnu.org> References: <61980dde-3d68-7200-e7f4-98f62e410060@cs.ucla.edu> <0e80a1cf-8217-9e9a-a00f-9fdbd6575fc4@cs.ucla.edu> <0a79089f-36ed-8183-a3bf-6cfa32cb9028@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1502764636 7061 195.159.176.226 (15 Aug 2017 02:37:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 Aug 2017 02:37:16 +0000 (UTC) Cc: p.stephani2@gmail.com, 27986@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 15 04:37:08 2017 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 1dhRj9-0001L1-B4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Aug 2017 04:37:07 +0200 Original-Received: from localhost ([::1]:53199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhRjE-0001fb-9A for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Aug 2017 22:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhRj7-0001eT-5p for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2017 22:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhRj4-0002dS-4T for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2017 22:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57120) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhRj4-0002dO-0V for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2017 22:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dhRj3-0006sA-Nj for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2017 22:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Aug 2017 02:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27986 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: security Original-Received: via spool by 27986-submit@debbugs.gnu.org id=B27986.150276456526408 (code B ref 27986); Tue, 15 Aug 2017 02:37:01 +0000 Original-Received: (at 27986) by debbugs.gnu.org; 15 Aug 2017 02:36:05 +0000 Original-Received: from localhost ([127.0.0.1]:37568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhRi9-0006rs-Ct for submit@debbugs.gnu.org; Mon, 14 Aug 2017 22:36:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhRi8-0006rV-4r for 27986@debbugs.gnu.org; Mon, 14 Aug 2017 22:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhRhz-0002Uu-WB for 27986@debbugs.gnu.org; Mon, 14 Aug 2017 22:35:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhRhz-0002Uq-SO; Mon, 14 Aug 2017 22:35:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1234 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dhRhz-00063E-A2; Mon, 14 Aug 2017 22:35:55 -0400 In-reply-to: <0a79089f-36ed-8183-a3bf-6cfa32cb9028@cs.ucla.edu> (message from Paul Eggert on Mon, 14 Aug 2017 16:03:13 -0700) 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:135766 Archived-At: > Cc: Eli Zaretskii , 27986@debbugs.gnu.org > From: Paul Eggert > Date: Mon, 14 Aug 2017 16:03:13 -0700 > > Philipp Stephani wrote: > > > there's no way to special-case > > casing changes while keeping atomicity intact. So I'd rather have Emacs > > react conservatively and skip the casing check entirely. > > Yes, that makes sense, at least for macOS. As I wrote, we should not lose the feature that renaming a file on macOS to a different letter-case works without nagging the user with confirmations. I don't think this runs afoul of security, since the letter-case check doesn't break atomicity in any way.