# HG changeset patch # User Jerry James # Date 1262893465 25200 # Node ID 53071486ff7a90702b43f6315aec3ee61d218ee0 # Parent 41852ee5f1b003f05636d7c863b9d884fc62b252 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>. diff -r 41852ee5f1b0 -r 53071486ff7a src/ChangeLog --- a/src/ChangeLog Thu Jan 07 17:01:25 2010 +0000 +++ b/src/ChangeLog Thu Jan 07 12:44:25 2010 -0700 @@ -1,3 +1,8 @@ +2010-01-07 Henrique Martins + + * dired.c (file_name_completion): If a file is too big to stat(), + ignore the error, since we don't use the size. + 2010-01-07 Aidan Kehoe * mule-charset.c: diff -r 41852ee5f1b0 -r 53071486ff7a src/dired.c --- 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)