Mail Archives: cygwin/2002/11/12/21:29:03
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.
Pierre
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 @@
{
BEGIN_PRIVILEGED ();
- link (nfslockfile, lockfile);
+ res = link (nfslockfile, lockfile);
END_PRIVILEGED ();
+ if (!res)
+ break;
+
if (stat (nfslockfile, &sb) != 0)
{
/* perror ("stat"); */
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -