diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-16 09:39:42 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-16 09:39:42 -0700 |
commit | a9757f6a03cce5ff2931b1125a9a2249573c8e1c (patch) | |
tree | 540a3b5b9e4fc657ed85749d5ef10b5a125ce1c3 /src/unexaix.c | |
parent | c43843aa1ad80cc0e4f6dc2ab523727b10b10a22 (diff) | |
download | emacs-a9757f6a03cce5ff2931b1125a9a2249573c8e1c.tar.gz |
* fileio.c (report_file_errno): Fix errno reporting bug.
If the file name is neither null nor a pair, package it up as a
singleton list. All callers changed, both to this function and to
report_file_error. This fixes a bug where the memory allocator
invoked by list1 set errno so that the immediately following
report_file_error reported the wrong errno value.
Diffstat (limited to 'src/unexaix.c')
-rw-r--r-- | src/unexaix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexaix.c b/src/unexaix.c index f97de45449e..fc1acc9ab4f 100644 --- a/src/unexaix.c +++ b/src/unexaix.c @@ -97,7 +97,7 @@ report_error (const char *file, int fd) int err = errno; if (fd) emacs_close (fd); - report_file_errno ("Cannot unexec", list1 (build_string (file)), err); + report_file_errno ("Cannot unexec", build_string (file), err); } #define ERROR0(msg) report_error_1 (new, msg) |