nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated


From: David Levine
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 86c5a525f242b0a0464d1fa9a5a53029401d093a
Date: Wed, 14 Mar 2012 03:29:59 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  86c5a525f242b0a0464d1fa9a5a53029401d093a (commit)
      from  360f0c24ea63ed5420365703dd11f72caca0d183 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=86c5a525f242b0a0464d1fa9a5a53029401d093a


commit 86c5a525f242b0a0464d1fa9a5a53029401d093a
Author: David Levine <address@hidden>
Date:   Tue Mar 13 22:28:03 2012 -0500

    Disabled the optimization to stop stat'ing directory entries in
    BuildFolderListRecurse() of flist.c under conditions where st_nlink is
    set to 1.  That happens on Cygwin, for example:
      http://cygwin.com/ml/cygwin-apps/2008-08/msg00264.html

diff --git a/uip/flist.c b/uip/flist.c
index d46f7ba..8d8b92e 100644
--- a/uip/flist.c
+++ b/uip/flist.c
@@ -413,6 +413,12 @@ BuildFolderListRecurse(char *dirName, struct stat *s, int 
searchdepth)
      * stat them.  But that shouldn't generally be a problem.
      */
     nlinks = s->st_nlink;
+    if (nlinks == 1) {
+      /* Disable the optimization under conditions where st_nlink
+         is set to 1.  That happens on Cygwin, for example:
+         http://cygwin.com/ml/cygwin-apps/2008-08/msg00264.html */
+      nlinks = INT_MAX;
+    }
 
     if (!(dir = opendir(dirName)))
        adios(dirName, "can't open directory");

-----------------------------------------------------------------------

Summary of changes:
 uip/flist.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]