aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-02 15:51:49 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-02 15:51:49 +0000
commit41a104921e5b7e5f7ad5c0b93fc13f98e8dffaa3 (patch)
tree4ce0b9298c21008bebd268e61e9daecb8149eeba
parentd9a543ece708bb0802219ed8e4043bc2d0b361fd (diff)
downloadgnunet-41a104921e5b7e5f7ad5c0b93fc13f98e8dffaa3.tar.gz
gnunet-41a104921e5b7e5f7ad5c0b93fc13f98e8dffaa3.zip
chmod
-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) &&