Hello Andrey,

Thursday, July 7, 2005, 18:12:25, Andrey Shorin wrote:

>   Subj. if swap.state file is deleted.

>   Debugging shows that's because
>   strncpy(dp->dent.d_name, dp->fileinfo.name, _MAX_FNAME) in readdir()
>   fails. Well, it was yesterday ;) Now this is sscanf() in
>   storeAufsDirGetNextFile() which fails. Can't get the cause yet...

Comitted port/win32/src/readdir.c change to fix the problem (see patch
attached).

P.S. [EMAIL PROTECTED] mailing list doesn't reflect my commit (2
hours passed since that). Is that OK?

-- 
Best regards,
 Andrey Shorin
Index: readdir.c
===================================================================
RCS file: /cvsroot/squid/squid/port/win32/src/Attic/readdir.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -3 -r1.1.2.2 -r1.1.2.3
--- readdir.c   26 Apr 2002 20:31:49 -0000      1.1.2.2
+++ readdir.c   8 Jul 2005 18:48:19 -0000       1.1.2.3
@@ -1,9 +1,8 @@
-
+#include "config.h"
 #include <malloc.h>
 #include <string.h>
 #include <errno.h>
 #define strdup _strdup
-#include "readdir.h"
 
 /**********************************************************************
  * Implement dirent-style opendir/readdir/closedir on Window 95/NT

Reply via email to