-fixing #2578
[oweals/gnunet.git] / src / fs / gnunet-auto-share.c
index 9e2f45d3e780377a5749d786de6f1606b3024fe7..1a6e74b8cf8b3a8f8fef450e7b48ca9fc6436538 100644 (file)
@@ -579,8 +579,10 @@ add_file (void *cls,
 
   if (GNUNET_YES == do_shutdown)
     return GNUNET_SYSERR;
-  if (NULL != strstr (filename,
-                     DIR_SEPARATOR_STR ".auto-share"))
+  if ( (NULL != strstr (filename,
+                     "/.auto-share")) ||
+       (NULL != strstr (filename,
+                       "\\.auto-share")) )
     return GNUNET_OK; /* skip internal file */
   GNUNET_CRYPTO_hash (filename,
                      strlen (filename),