--- Begin Message ---
Subject: |
25.0.92; Cannot create temporary file ending in a period on OS X |
Date: |
Thu, 21 Apr 2016 09:30:40 -0700 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.92 (darwin) |
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
Description: PGP signature
--- End Message ---
--- Begin Message ---
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 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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.
--- End Message ---