Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d8afad26
Commit
d8afad26
authored
Apr 08, 1998
by
Karl Heuer
Browse files
(Fmake_temp_name): Detect error return from mktemp.
parent
0593f446
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/fileio.c
src/fileio.c
+5
-1
No files found.
src/fileio.c
View file @
d8afad26
...
...
@@ -797,6 +797,7 @@ which has no existing file.")
(prefix)
Lisp_Object prefix;
{
char *temp;
Lisp_Object val;
#ifdef MSDOS
/* Don't use too many characters of the restricted 8+3 DOS
...
...
@@ -805,7 +806,10 @@ which has no existing file.")
#else
val = concat2 (prefix, build_string ("XXXXXX"));
#endif
mktemp
(
XSTRING
(
val
)
->
data
);
temp = mktemp (XSTRING (val)->data);
if (! temp)
error ("No temporary file names based on %s are available",
XSTRING (prefix)->data);
#ifdef DOS_NT
CORRECT_DIR_SEPS (XSTRING (val)->data);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment