* fileio.c (report_file_errno): Fix errno reporting bug.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 16:39:42 +0000 (09:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 16:39:42 +0000 (09:39 -0700)
commita9757f6a03cce5ff2931b1125a9a2249573c8e1c
tree540a3b5b9e4fc657ed85749d5ef10b5a125ce1c3
parentc43843aa1ad80cc0e4f6dc2ab523727b10b10a22
* 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.
12 files changed:
src/ChangeLog
src/callproc.c
src/dired.c
src/dispnew.c
src/doc.c
src/fileio.c
src/gfilenotify.c
src/keyboard.c
src/print.c
src/process.c
src/unexaix.c
src/unexcoff.c