diff options
| author | Paul Eggert | 2013-07-16 21:37:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-16 21:37:27 -0700 |
| commit | b648c16370ca72e3b68678db41b29e62accb708c (patch) | |
| tree | a6d5dad9e4b7beb95c1957e56ca1498df93766e2 /src/callproc.c | |
| parent | b1dc4084264128eb303198f8b5cb6d70ee3b3034 (diff) | |
| download | emacs-b648c16370ca72e3b68678db41b29e62accb708c.tar.gz emacs-b648c16370ca72e3b68678db41b29e62accb708c.zip | |
A few more minor file errno-reporting bugs.
* callproc.c (Fcall_process):
* doc.c (Fsnarf_documentation):
* fileio.c (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
* process.c (set_socket_option):
Don't let a constructor trash errno.
* doc.c: Include <errno.h>.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 85ebf449e43..e0040ada609 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -405,7 +405,11 @@ usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) * | |||
| 405 | 405 | ||
| 406 | filefd = emacs_open (SSDATA (infile), O_RDONLY, 0); | 406 | filefd = emacs_open (SSDATA (infile), O_RDONLY, 0); |
| 407 | if (filefd < 0) | 407 | if (filefd < 0) |
| 408 | report_file_error ("Opening process input file", DECODE_FILE (infile)); | 408 | { |
| 409 | int open_errno = errno; | ||
| 410 | report_file_errno ("Opening process input file", DECODE_FILE (infile), | ||
| 411 | open_errno); | ||
| 412 | } | ||
| 409 | 413 | ||
| 410 | if (STRINGP (output_file)) | 414 | if (STRINGP (output_file)) |
| 411 | { | 415 | { |