From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#37884: 27.0.50; Cannot write to a file in VirtualBox shared directory Date: Thu, 31 Oct 2019 14:24:18 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87h83zeoy1.fsf@pobox.com> <87blu2emi3.fsf@pobox.com> <83lft6rxrs.fsf@gnu.org> <874kztdy0l.fsf@pobox.com> <87zhhkc4vs.fsf@pobox.com> <87sgnad3m4.fsf@pobox.com> <831ruup5dw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="120446"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 Cc: bernardo.bacic@pobox.com To: Robert Pluim , 37884@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 31 22:25:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQHwi-000VA6-3l for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 22:25:32 +0100 Original-Received: from localhost ([::1]:54196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQHwg-0007wk-PA for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 17:25:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38377) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQHwF-0007wO-Rr for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 17:25:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQHwE-0003gy-PQ for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 17:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQHwE-0003fz-Ix for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 17:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQHwE-000342-Cf for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 17:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2019 21:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37884 X-GNU-PR-Package: emacs Original-Received: via spool by 37884-submit@debbugs.gnu.org id=B37884.157255708011744 (code B ref 37884); Thu, 31 Oct 2019 21:25:02 +0000 Original-Received: (at 37884) by debbugs.gnu.org; 31 Oct 2019 21:24:40 +0000 Original-Received: from localhost ([127.0.0.1]:54400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHvq-00033K-HS for submit@debbugs.gnu.org; Thu, 31 Oct 2019 17:24:40 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQHvg-00032s-7V for 37884@debbugs.gnu.org; Thu, 31 Oct 2019 17:24:33 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AD9E21604FA; Thu, 31 Oct 2019 14:24:19 -0700 (PDT) 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 cmTWbA5Q-uz8; Thu, 31 Oct 2019 14:24:18 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ADAC61604FF; Thu, 31 Oct 2019 14:24:18 -0700 (PDT) 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 0LpX_XBGuHsI; Thu, 31 Oct 2019 14:24:18 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 912041604FA; Thu, 31 Oct 2019 14:24:18 -0700 (PDT) In-Reply-To: Content-Language: en-US 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: 209.51.188.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:170562 Archived-At: On 10/31/19 12:38 AM, Robert Pluim wrote: > I thought there > was a strong desire to keep the file read-only, otherwise why bother > with the fchmod in the first place? The desire was quite weak, not strong. I put in that fchmod in commit 2013-03-05T22:35:41!eggert@cs.ucla.edu only because mkostemp creates the lock file with mode 0600 but we want the file world-readable and so Emacs must OR 0044 into the mode. At the time, I thought there was no reason to have the file be writable to anybody once written, so I fchmod'ed it to 0444. But Bug#37884 means the file should be user-writable (to work around the compatibility issue with the nonstandard filesystem), so fchmod'ing to 0644 is a better choice.