diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-16 21:37:27 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-16 21:37:27 -0700 |
| commit | b648c16370ca72e3b68678db41b29e62accb708c (patch) | |
| tree | a6d5dad9e4b7beb95c1957e56ca1498df93766e2 /src/doc.c | |
| parent | b1dc4084264128eb303198f8b5cb6d70ee3b3034 (diff) | |
| download | emacs-b648c16370ca72e3b68678db41b29e62accb708c.tar.gz | |
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/doc.c')
| -rw-r--r-- | src/doc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/doc.c b/src/doc.c index 92c7b2c6dc9..168af6da94a 100644 --- a/src/doc.c +++ b/src/doc.c @@ -21,6 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <config.h> +#include <errno.h> #include <sys/types.h> #include <sys/file.h> /* Must be after sys/types.h for USG. */ #include <fcntl.h> @@ -609,7 +610,11 @@ the same file name is found in the `doc-directory'. */) fd = emacs_open (name, O_RDONLY, 0); if (fd < 0) - report_file_error ("Opening doc string file", build_string (name)); + { + int open_errno = errno; + report_file_errno ("Opening doc string file", build_string (name), + open_errno); + } Vdoc_file_name = filename; filled = 0; pos = 0; |
