This is the mail archive of the
mailing list for the Cygwin project.
Re: FAT32, "lock count exceeded", mutt etc.
- From: "Pierre A. Humblet" <pierre dot humblet at ieee dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 12 Nov 2002 21:24:14 -0500
- Subject: Re: FAT32, "lock count exceeded", mutt etc.
- References: <email@example.com>
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
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
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)
if (stat (nfslockfile, &sb) != 0)
/* perror ("stat"); */
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html