Subject: bug#23331: closed (Re: bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 07 Dec 2016 20:39:02 +0000

Your bug report

#23331: 25.0.92; Cannot create temporary file ending in a period on OS X

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
23331: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23331
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 07 Dec 2016 15:38:14 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

Subject: 25.0.92; Cannot create temporary file ending in a period on OS X
From: John Wiegley <[email-masked]>
To: [email-masked]
Date: Thu, 21 Apr 2016 09:30:40 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

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