From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#27986: 26.0.50; 'rename-file' can rename files without Date: Fri, 25 Aug 2017 13:33:46 -0700 Message-ID: References: <83wp5zc6c2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503693873 23504 195.159.176.226 (25 Aug 2017 20:44:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 20:44:33 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.2.50 (darwin) Cc: 27986@debbugs.gnu.org, rms@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 25 22:44:24 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 1dlLSb-0004mV-1t for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 22:44:09 +0200 Original-Received: from localhost ([::1]:55000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlLSg-0002br-0d for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 16:44:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlLSY-0002bW-4L for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 16:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlLSU-000088-TW for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 16:44:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46432) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlLSU-000084-Pa for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 16:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlLSU-0004pS-Gg for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 16:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2017 20:44:02 +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.150369380518489 (code B ref 27986); Fri, 25 Aug 2017 20:44:02 +0000 Original-Received: (at 27986) by debbugs.gnu.org; 25 Aug 2017 20:43:25 +0000 Original-Received: from localhost ([127.0.0.1]:55110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlLRo-0004o5-Oh for submit@debbugs.gnu.org; Fri, 25 Aug 2017 16:43:24 -0400 Original-Received: from mail-pg0-f50.google.com ([74.125.83.50]:37864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlLRi-0004nm-Qc for 27986@debbugs.gnu.org; Fri, 25 Aug 2017 16:43:19 -0400 Original-Received: by mail-pg0-f50.google.com with SMTP id 83so4627872pgb.4 for <27986@debbugs.gnu.org>; Fri, 25 Aug 2017 13:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version; bh=URewQ+WGGuYA2Hon3xVIqqaZ7uuOTUZpu1/I3cHLcQM=; b=nlOg0aHuee6CM06eTzzTwd6irBiZvXNF24bDBwq/orP9KjcJNKEkQbBpxF+RaSg587 v2K+Z1qJE9nA+bFy5KZKOw3EgSgT0DkrXpm66ikBM2wL+dUg1Pk8A++X9Q3wd3A+RbHg Mfg9dMtP7c2OiS/jWMi/i6nHdDPpp/Pvv9QgN4v8LR+kETUn+4YkzOKmgHm5F8jX/XpD W9MLaTNYk9HC1yL1/Ax2Kc97UCt9oW9Viw1sjifcSC3AYdD+yXNKN51DsefVgjl8tg6D LTjKL8EYhJpmsASNB3tYuYEw4EqJD1eJD9tyIX+Vm75HCC0XWyclnmH/J86opolmmuJ0 1BZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mime-version; bh=URewQ+WGGuYA2Hon3xVIqqaZ7uuOTUZpu1/I3cHLcQM=; b=o9iUrwSPAjexmXBeOw8f7kwE6GLlaxa7+LVGWfuEcongTqjHri7nOhe81ywWGk1pqs YYxND5Hc9sGMmdTE7SzV7CMHv/6IN1Z+wcFOTlNm4z7mX730bMbows8gQo7DHEJIRHG7 SnMUkZRFUB3I5ewnfBMlvRFLETGscq+U4jMM86WbwtpsWIeKzxRFyxje1OWU1SZM+wJK XxHE7Sp0Kop40PNP91jDG9+TV3kK+2KZMgEiV/kDC0LRpSWSfEHCUW/EA9sbf6N5B1Mj LYj0DBC6U+mneT6q0q/D78IsS0/eOsWpQwosvdedB7Q22Ew5Ujex0FUxwMdPqvF4u1/7 pdVw== X-Gm-Message-State: AHYfb5iFEbzr9ctiJKVfsZmf0RFX2DmDh5TZLUjGnZ9DYq/sy/I1XCe6 7gYgtB6MAIMMLaQ2iGo= X-Received: by 10.98.103.14 with SMTP id b14mr5522287pfc.171.1503693788389; Fri, 25 Aug 2017 13:43:08 -0700 (PDT) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id g26sm12725553pfk.139.2017.08.25.13.43.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Aug 2017 13:43:06 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id CBCC38A339DD; Fri, 25 Aug 2017 13:43:05 -0700 (PDT) In-Reply-To: <83wp5zc6c2.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 20 Aug 2017 05:37:33 +0300") 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:136211 Archived-At: >>>>> "EZ" == Eli Zaretskii writes: EZ> Thanks. I do indeed think that making this an error even if B is an empty EZ> directory would be better, as it will reveal the cases that need to be EZ> fixed more prominently. I prefer that to renaming a directory when the target is a directory. That's not how /bin/mv behaves, so I'd be surprised if (rename-file) did differently. Making the Emacs version more restrictive, however, makes sense. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2