]> git.eshelyaron.com Git - emacs.git/commit
Report readdir failures
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Jan 2015 23:32:15 +0000 (15:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Jan 2015 23:33:20 +0000 (15:33 -0800)
commit4ab6e74a1c76cd3a3c2e57aa48e853385365b423
tree3cb6fc023416f5b00a0212f188a0d6ee0e87003a
parenteadf313c72edcc3a11b9d03032699416efebfe1a
Report readdir failures

Previously, on non-MS-Windows platforms the code treated most
readdir failures as EOF.  This was incorrect, e.g., when readdir
fails with errno == EOVERFLOW.  Signal an error instead.
* dired.c (read_dirent):
New function, which signals an error when readdir fails.
(directory_files_internal, file_name_completion): Use it.
src/ChangeLog
src/dired.c