This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FAT32, "lock count exceeded", mutt etc.

On Tue, Nov 12, 2002 at 12:10:40PM -0500, Scott W Brim wrote:
> Looking through the mail archives I can't tell what the recommended fix
> is for running mutt/fetchmail/procmail and all on a FAT32 partition, wrt
> file locking problems.  There was plenty of discussion last summer but I
> can't find a resolution.  So far I've tried CYGWIN=nontsec, and
> reconfiguring and recompiling mutt.  No luck.  Help?  What are the magic
> words?

Mutt needs two fixes to run on FAT:
- a fix to Cygwin, included since October.
- a patch to mutt, see below.
The mutt maintainer is aware of this patch. I hope it eventually
will become part of the mutt distribution. It helps FAT without
hurting anything.


P.S.: this message was sent by mutt on WinME

--- dotlock.c.orig      2002-09-17 22:37:46.000000000 -0400
+++ dotlock.c   2002-09-17 22:40:28.000000000 -0400
@@ -586,7 +586,7 @@
   char lockfile[_POSIX_PATH_MAX + LONG_STRING];
   char nfslockfile[_POSIX_PATH_MAX + LONG_STRING];
   size_t prev_size = 0;
-  int fd;
+  int fd, res;
   int count = 0;
   int hard_count = 0;
   struct stat sb;
@@ -625,9 +625,12 @@
-    link (nfslockfile, lockfile);
+    res = link (nfslockfile, lockfile);
+    if (!res)
+      break;
     if (stat (nfslockfile, &sb) != 0)
       /* perror ("stat"); */

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]