aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index d5e6f2f60..22ee8d196 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -1053,6 +1053,7 @@ GNUNET_DISK_directory_remove (const char *fileName)
1053 1053
1054 if (0 != LSTAT (fileName, &istat)) 1054 if (0 != LSTAT (fileName, &istat))
1055 return GNUNET_NO; /* file may not exist... */ 1055 return GNUNET_NO; /* file may not exist... */
1056 CHMOD (fileName, S_IWUSR | S_IRUSR);
1056 if (UNLINK (fileName) == 0) 1057 if (UNLINK (fileName) == 0)
1057 return GNUNET_OK; 1058 return GNUNET_OK;
1058 if ((errno != EISDIR) && 1059 if ((errno != EISDIR) &&