all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: jsynacek@redhat.com, 24656-done@debbugs.gnu.org
Subject: bug#24656: 25.1; Emacs leaves lock files on a CIFS share
Date: Tue, 11 Oct 2016 13:15:50 -0700	[thread overview]
Message-ID: <bcb4005a-2a67-fd0f-7102-f6760dc0ca85@cs.ucla.edu> (raw)
In-Reply-To: <837f9eddbn.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

On 10/11/2016 10:07 AM, Eli Zaretskii wrote:
> Sounds fine to me.  I just tried this on a Windows filesystem, and it
> allows that, so Samba should, too.

Unfortunately when I looked at the Emacs code more carefully, I found 
that '..' won't work because it will confuse older Emacs. So will '@'. 
Come to think of it, changing conventions in this area is likely to 
break interoperability not only with older Emacs, but also with other 
programs that attempt to work with Emacs's locking scheme.

I looked into Cygwin, and it seems to use U+F022 to represent '"', not 
':'. So this is not Cygwin-related.

I looked at the original Red Hat bug report, and found that I could 
reproduce the problem with a simple C program, i.e., without Emacs or 
Cygwin. It appears to be a Samba bug. I added a comment to that effect 
to the Red Hat bug report.

I installed into Emacs master the attached patch, which should work 
around the Samba bug without introducing so many interoperability 
hassles, and am boldly marking the Emacs bug as done. It's not clear to 
me whether this change is worth backporting into emacs-25, as Emacs has 
locked files this way for ages.

[-- Attachment #2: 0001-Work-around-Samba-bug-with-in-symlink-contents.patch --]
[-- Type: application/x-patch, Size: 3994 bytes --]

  reply	other threads:[~2016-10-11 20:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 11:30 bug#24656: 25.1; Emacs leaves lock files on a CIFS share Jan Synáček
2016-10-10 12:14 ` Eli Zaretskii
2016-10-10 13:49   ` Jan Synacek
2016-10-10 15:49     ` Eli Zaretskii
2016-10-11  6:32       ` Jan Synacek
2016-10-11  6:49         ` Eli Zaretskii
2016-10-11  6:52           ` Jan Synacek
2016-10-11 15:59           ` Paul Eggert
2016-10-11 16:29             ` Eli Zaretskii
2016-10-11 16:53               ` Paul Eggert
2016-10-11 17:07                 ` Eli Zaretskii
2016-10-11 20:15                   ` Paul Eggert [this message]
2016-10-11 20:58                     ` Eli Zaretskii
2016-10-11 22:46                       ` Paul Eggert
2016-10-12  6:40                         ` Eli Zaretskii
2016-10-12 16:21                           ` Paul Eggert
2016-10-12 16:53                             ` Eli Zaretskii
2016-10-11 17:43             ` Achim Gratz
2016-10-11 18:16               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bcb4005a-2a67-fd0f-7102-f6760dc0ca85@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=24656-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jsynacek@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.