commit 2945255c1a0475b6ec566da645952e4de4fee5e4
parent 2318b7aafd193e4dfa5c4e0c5e3ed2a687e97ea0
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 4 Dec 2014 18:13:43 +0000
-fix ftbfs on W32
Diffstat:
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
@@ -506,11 +506,12 @@ GNUNET_DISK_pipe_handle (const struct GNUNET_DISK_PipeHandle *p,
*/
struct GNUNET_DISK_FileHandle *
GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh);
-#else
+#endif
/**
* Update POSIX permissions mask of a file on disk. If both argumets
* are #GNUNET_NO, the file is made world-read-write-executable (777).
+ * Does nothing on W32.
*
* @param fn name of the file to update
* @param require_uid_match #GNUNET_YES means 700
@@ -521,7 +522,6 @@ GNUNET_DISK_fix_permissions (const char *fn,
int require_uid_match,
int require_gid_match);
-#endif
/**
diff --git a/src/util/disk.c b/src/util/disk.c
@@ -464,6 +464,24 @@ mkdtemp (char *fn)
strcpy (fn, tfn);
return fn;
}
+
+/**
+ * Update POSIX permissions mask of a file on disk. If both argumets
+ * are #GNUNET_NO, the file is made world-read-write-executable (777).
+ * Does nothing on W32.
+ *
+ * @param fn name of the file to update
+ * @param require_uid_match #GNUNET_YES means 700
+ * @param require_gid_match #GNUNET_YES means 770 unless @a require_uid_match is set
+ */
+void
+GNUNET_DISK_fix_permissions (const char *fn,
+ int require_uid_match,
+ int require_gid_match)
+{
+ /* nothing on W32 */
+}
+
#else
/**