Mercurial > hg > xemacs-beta
diff src/dired.c @ 4808:53071486ff7a
Ignore file-too-large conditions when stat()ing a file for dired. The size
isn't used anyway, but the mode is still filled in. Thanks to Henrique Martins
for the patch. See the xemacs-patches thread beginning with message
<8202.1261593067@monster.martins.cc>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Thu, 07 Jan 2010 12:44:25 -0700 |
parents | 5998e37dc35e |
children | 16112448d484 |
line wrap: on
line diff
--- a/src/dired.c Thu Jan 07 17:01:25 2010 +0000 +++ b/src/dired.c Thu Jan 07 12:44:25 2010 -0700 @@ -371,8 +371,10 @@ || 0 <= scmp (d_name, XSTRING_DATA (file), file_name_length)) continue; - if (file_name_completion_stat (directory, dp, &st) < 0) - continue; + /* Ignore file-too-large conditions; the mode is still filled in. */ + if (file_name_completion_stat (directory, dp, &st) < 0 && + errno != EOVERFLOW) + continue; directoryp = ((st.st_mode & S_IFMT) == S_IFDIR); if (directoryp)