GNU bug report logs - #37884
27.0.50; Cannot write to a file in VirtualBox shared directory

Previous Next

Package: emacs;

Reported by: Bernardo <bernardo.bacic <at> pobox.com>

Date: Wed, 23 Oct 2019 10:29:01 UTC

Severity: normal

Found in version 27.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #58 received at 37884 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Robert Pluim <rpluim <at> gmail.com>, 37884 <at> debbugs.gnu.org
Cc: bernardo.bacic <at> pobox.com
Subject: Re: bug#37884: 27.0.50; Cannot write to a file in VirtualBox shared
 directory
Date: Thu, 31 Oct 2019 14:24:18 -0700
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 <at> 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.




This bug report was last modified 5 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.