From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#46397: 27.1; Cannot delete buffer pointing to a file in a path that includes a file Date: Sat, 6 Mar 2021 18:50:29 -0800 Organization: UCLA Computer Science Department Message-ID: <812e17db-1b3b-21cc-8f66-7d75e704c7cc@cs.ucla.edu> References: <83sg5r276b.fsf@gnu.org> <838s7j14xc.fsf@gnu.org> <837dmq95ee.fsf@gnu.org> <87y2f1meeu.fsf@mdeb> <83pn0cwrlx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20538"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cc: 46397@debbugs.gnu.org, craven@gmx.net To: Eli Zaretskii , Matt Armstrong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 07 03:51:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lIjVe-0005Dk-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 03:51:10 +0100 Original-Received: from localhost ([::1]:50440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIjVd-0001u7-Tn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 21:51:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIjVW-0001tu-4A for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 21:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIjVV-0005Q2-LP for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 21:51:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIjVV-0004ak-Jc for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 21:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Mar 2021 02:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46397 X-GNU-PR-Package: emacs Original-Received: via spool by 46397-submit@debbugs.gnu.org id=B46397.161508544217621 (code B ref 46397); Sun, 07 Mar 2021 02:51:01 +0000 Original-Received: (at 46397) by debbugs.gnu.org; 7 Mar 2021 02:50:42 +0000 Original-Received: from localhost ([127.0.0.1]:38676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIjV8-0004a5-7P for submit@debbugs.gnu.org; Sat, 06 Mar 2021 21:50:42 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIjV6-0004Zn-Np for 46397@debbugs.gnu.org; Sat, 06 Mar 2021 21:50:37 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 774EC1600FA; Sat, 6 Mar 2021 18:50:30 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id scDdvAhoH-2g; Sat, 6 Mar 2021 18:50:29 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B84AF16013E; Sat, 6 Mar 2021 18:50:29 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id t9oGkP7CV_sY; Sat, 6 Mar 2021 18:50:29 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7C4691600FA; Sat, 6 Mar 2021 18:50:29 -0800 (PST) In-Reply-To: <83pn0cwrlx.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201710 Archived-At: On 3/6/21 1:36 AM, Eli Zaretskii wrote: > I'm asking what is the difference, from the file-locking POV, between > an inaccessible directory and a directory that doesn't exist? In the former (EACCES) case, it's possible that the lockfile exists but=20 Emacs cannot remove it because the user currently lacks permissions to=20 an ancestor directory; this serious problem is worth reporting to the use= r. In the latter (ENOTDIR) case the lockfile cannot possibly exist, and=20 Emacs can treat ENOTDIR differently from EACCES for that reason. It=20 makes sense for Emacs to treat ENOTDIR like ENOENT, since in both cases=20 the lockfile cannot possibly exist and these are the only two error=20 numbers with that property. It might also make sense to treat ENOTDIR specially (neither like EACCES=20 nor like ENOENT) but that's a discussion we haven't had yet, as far as I=20 know. We've spent more time on this ENOENT/ENOTDIR issue than it's worth, so=20 feel free to revert my change and install whatever other change you=20 like. I'm sure there are lots of ways to fix the underlying problem.