From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#24714: delete-directory race condition Date: Mon, 17 Oct 2016 19:00:55 +0200 Message-ID: <87shruj4fs.fsf@linux-m68k.org> References: <83d1izzedl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476723758 4823 195.159.176.226 (17 Oct 2016 17:02:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2016 17:02:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24714@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 19:02:34 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 1bwBIk-00073R-IU for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2016 19:02:14 +0200 Original-Received: from localhost ([::1]:34528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwBIm-0000Pe-Nw for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2016 13:02:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwBIc-0000OQ-64 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 13:02:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwBIY-0006Zg-7e for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 13:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwBIY-0006ZV-4l for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 13:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwBIX-0008OP-Rv for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 13:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2016 17:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24714-submit@debbugs.gnu.org id=B24714.147672366132173 (code B ref 24714); Mon, 17 Oct 2016 17:02:01 +0000 Original-Received: (at 24714) by debbugs.gnu.org; 17 Oct 2016 17:01:01 +0000 Original-Received: from localhost ([127.0.0.1]:36986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwBHZ-0008Mo-CL for submit@debbugs.gnu.org; Mon, 17 Oct 2016 13:01:01 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:43279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwBHX-0008MW-Na for 24714@debbugs.gnu.org; Mon, 17 Oct 2016 13:01:00 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3syPbt47Zkz3hjPD; Mon, 17 Oct 2016 19:00:58 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3syPbt2Ny2zvkKJ; Mon, 17 Oct 2016 19:00:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id pJ0D2SHTTl_4; Mon, 17 Oct 2016 19:00:56 +0200 (CEST) X-Auth-Info: PCPrmIvQYi3n4nZ1j2zC/w8j9dhFylxWqtoKucd2RImik8V7mYM2jyC0ctCudBVj Original-Received: from igel.home (ppp-88-217-7-89.dynamic.mnet-online.de [88.217.7.89]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 17 Oct 2016 19:00:56 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id C5ACE2C4481; Mon, 17 Oct 2016 19:00:55 +0200 (CEST) X-Yow: Actually, what I'd like is a little toy spaceship!! In-Reply-To: (Glenn Morris's message of "Mon, 17 Oct 2016 11:52:31 -0400") 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:124597 Archived-At: On Okt 17 2016, Glenn Morris wrote: > I don't think that's enough, since a file could equally well be > _created_ by some other process after delete-directory calls directory-files. That is ok. The operation cannot successfully be completed in this case. > Frankly I don't see how Emacs's delete-directory can work reliably as > currently implemented. A property it shares with any other operation recursing on directories, in Emacs or elsewhere. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."