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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 37884 <at> debbugs.gnu.org, bernardo.bacic <at> pobox.com
Subject: bug#37884: 27.0.50; Cannot write to a file in VirtualBox shared directory
Date: Sun, 27 Oct 2019 18:34:06 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: 37884 <at> debbugs.gnu.org,  bernardo.bacic <at> pobox.com
> Date: Sun, 27 Oct 2019 17:01:11 +0100
> 
>     >> Eli, if the results come back that using 0664 or similar on lockfiles
>     >> resolves this, would you be amenable to such a change?
> 
>     Eli> I'm not sure I understand the proposal.  Is the suggestion to chmod
>     Eli> the file to 0644 before calling unlink?
> 
> Yes, although of course this is assuming it works, one other option
> could be to just not mess with the file's permissions at all when
> initially creating the lockfile.

AFAIU, the problem is with removing the file?  If so, I'd suggest to
do what w32.c does: call unlink as we do now, and if it fails, call
chmod to make it writable and try unlink again.  This has an advantage
of not changing anything for filesystems that implement the Posix
semantics.




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.