From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28023: fix make-temp-file race on local host Date: Wed, 09 Aug 2017 13:21:28 +0200 Message-ID: <87k22d7zrb.fsf@detlef> References: <8c2c16ff-94ec-a691-57b1-bab8f5b39dfb@cs.ucla.edu> <87shh18c9e.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502277736 31564 195.159.176.226 (9 Aug 2017 11:22:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Aug 2017 11:22:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28023@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 09 13:22:12 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 1dfP3y-0007iZ-Ie for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Aug 2017 13:22:10 +0200 Original-Received: from localhost ([::1]:46844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfP41-0003gV-FA for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Aug 2017 07:22:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfP3u-0003gE-Kp for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 07:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfP3q-0007pt-Az for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 07:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfP3q-0007pn-7q for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dfP3p-00044N-UV for bug-gnu-emacs@gnu.org; Wed, 09 Aug 2017 07:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Aug 2017 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28023 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28023-submit@debbugs.gnu.org id=B28023.150227770815619 (code B ref 28023); Wed, 09 Aug 2017 11:22:01 +0000 Original-Received: (at 28023) by debbugs.gnu.org; 9 Aug 2017 11:21:48 +0000 Original-Received: from localhost ([127.0.0.1]:52708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfP3c-00043r-F1 for submit@debbugs.gnu.org; Wed, 09 Aug 2017 07:21:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfP3a-00043e-Pq for 28023@debbugs.gnu.org; Wed, 09 Aug 2017 07:21:47 -0400 Original-Received: from detlef.gmx.de ([212.91.243.217]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MIyCj-1ddUJ926Kf-002ZZi; Wed, 09 Aug 2017 13:21:30 +0200 In-Reply-To: (Paul Eggert's message of "Wed, 9 Aug 2017 02:22:37 -0700") X-Provags-ID: V03:K0:1WSAtVqZu5VioSWcZg7/tm1/xPNqupmwgWFEo7y2xC2xUXdlnSk HttBGvvfg8ldVRIf6Yb9lyLEVhfVPOfK7vnRg8M6dAdDPkYZ1xLQ31wr4owVnxP4tqezFBe 0HkCg6tW91eMJ0+1M8F5Y2K61n2/O2n/wAEoy+C1Op04DJA3s3bEjQzZCPKefB6duB2VFcQ YQvdt2UDvetRrEyltTmmw== X-UI-Out-Filterresults: notjunk:1;V01:K0:s+vaPKCG6y0=:BlsXnQ0ee+Y4m2lzDbfael 8XR55NLZHRCmahFPI7EfQMlts0pfFHzwwUAp+mjaM5B3Z+U7f1pUz56c3Jlrvs9+kkBXJieK2 LW7cpj1hW/9B+cnHjfHDCBRlju3Tw3iIgfGh+wl0L8OwBQ8O48+dO0MmYLSFPULk/zwFD0HZo xrE1tPN2FX2mf6ZhKwJhLeMuQYO+DcesCP6WRkyPRXDdJAtIOIroVWH2kVyyyltufBSluvfnt mBFROcwJDHoHNOBlVYBDimk1CfctfNs8ova7UMuQWb+4OOGx+cAABY+TVgIVj9VmqaPdm/3j1 qI6ff8uZO5Z+nELZXiaWMlx2MY4K/lA64rF73jWWus4R9n6lgSs61riqGvt+b+4mp8ocQWrVs QbtVAViRRQbD8GrYthpV7ba33vig+PiQWxi10D/0K46THPBFfWVryHprXOPkJrnglBTNbgBg4 OI6e58q4HXCny5Ho+VRW7dMQ8GYbzVlDdSBVbxtWPs93HP6lINSd3/zBPGJvA5EySqfGPnQIc qa8W6CFjjsjd7J4uMKoSJiR1td6E4eK1rNZAPecphhsGiknt77LiS3T6h5a+166oLKDmIjc3h 0rnO9nlAd9HjPe0Smew/SphjWAnjHR3CxK3kJamv4l4dWSrh46C0l36jB834ihh1IepSDYBgu K3ZZYYzJMc1ajn7cWzNNuzyKjnVA441fWTwyKQttRBUXiYwAcJWKFWLn7dWAd5fyE9h/x1ryR A3LMZm1QxrWzwrKjig4ek5zweRm1iFfsr3yP4jRcfwe2K3rKDZaddm9nazWJRV/ZzxLvHDGc 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:135596 Archived-At: Paul Eggert writes: > Tramp needs to support a new method make-temp-file that creates a file > (or directory) atomically, as make-temp-file does locally now. That means, make-temp-file shall be converted into a magic file name operation. I'll do my best, but I don't know whether we could get an implementation for all Tramp methods w/o a race condition. > Tramp also needs to support the excl flag of write-region (currently > it ignores that flag). This sounds trivial. And yes, it will help. > I was planning to write this up as a bug report after the patch goes > in. Pls do. Best regards, Michael.