-only test for exist, not for read
authorChristian Grothoff <christian@grothoff.org>
Sat, 14 Jul 2012 23:14:09 +0000 (23:14 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 14 Jul 2012 23:14:09 +0000 (23:14 +0000)
src/util/disk.c

index d805c1e42ca0033c71660fc378ac2523b3128820..941546a5d867ad414a174d0515fb699f57955d0e 100644 (file)
@@ -660,7 +660,7 @@ GNUNET_DISK_file_test (const char *fil)
     GNUNET_free (rdir);
     return GNUNET_NO;
   }
-  if (ACCESS (rdir, R_OK) < 0)
+  if (ACCESS (rdir, F_OK) < 0)
   {
     LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "access", rdir);
     GNUNET_free (rdir);