GNU bug report logs - #23331
25.0.92; Cannot create temporary file ending in a period on OS X

Previous Next

Package: emacs;

Reported by: John Wiegley <jwiegley <at> gmail.com>

Date: Thu, 21 Apr 2016 16:32:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 25.0.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23331: closed (25.0.92; Cannot create temporary file ending
 in a period on OS X)
Date: Wed, 07 Dec 2016 20:39:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 07 Dec 2016 15:38:14 -0500
with message-id <5td1h3eaq1.fsf <at> fencepost.gnu.org>
and subject line Re: bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
has caused the debbugs.gnu.org bug report #23331,
regarding 25.0.92; Cannot create temporary file ending in a period on OS X
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23331: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23331
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: John Wiegley <jwiegley <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.92; Cannot create temporary file ending in a period on OS X
Date: Thu, 21 Apr 2016 09:30:40 -0700
[Message part 3 (text/plain, inline)]
I'm not sure if this is a Mac problem, or an Emacs 25 problem, but it occurs
with the latest emacs-25 on OS X 10.10:

    M-: (make-temp-name "index.magit.") RET

Will report the error:

    Cannot create temporary name for prefix: Bad file descriptor, index.magit.

I discovered this because Magit 2.6 uses temporary files with such a name.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 23331-done <at> debbugs.gnu.org
Subject: Re: bug#23331: 25.0.92;
 Cannot create temporary file ending in a period on OS X
Date: Wed, 07 Dec 2016 15:38:14 -0500
Alan Third wrote:

> Can you try either running in a debugger and finding out what the
> ‘data’ variable contains at line 716 of fileio.c (just before
> ‘if (!check_existing (data))’), or putting something like:
>
>     printf("filename: %s\n", data);
>
> on that same line?
>
> The make_temp_name function generates a name and then tests to see if
> it already exists and it’s this test that’s throwing up the error. My
> first thought is that it’s possible that it’s generating an invalid
> file name, so it would be good to see exactly what that name is.
>
> Also, what’s the PWD?

No response in several months, closing.


This bug report was last modified 8 years and 228 days ago.

Previous Next


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