chmod
authorChristian Grothoff <christian@grothoff.org>
Tue, 2 Aug 2011 15:51:49 +0000 (15:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 2 Aug 2011 15:51:49 +0000 (15:51 +0000)
src/util/disk.c

index d5e6f2f6086694c736f045f8f29703d80056d117..22ee8d196e109604dd39a885f2a9bdaef94dcfcd 100644 (file)
@@ -1053,6 +1053,7 @@ GNUNET_DISK_directory_remove (const char *fileName)
 
   if (0 != LSTAT (fileName, &istat))
     return GNUNET_NO;           /* file may not exist... */
+  CHMOD (fileName, S_IWUSR | S_IRUSR);
   if (UNLINK (fileName) == 0)
     return GNUNET_OK;
   if ((errno != EISDIR) &&