[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34476 - in gnunet/src: include util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34476 - in gnunet/src: include util |
Date: |
Thu, 4 Dec 2014 19:13:43 +0100 |
Author: grothoff
Date: 2014-12-04 19:13:43 +0100 (Thu, 04 Dec 2014)
New Revision: 34476
Modified:
gnunet/src/include/gnunet_disk_lib.h
gnunet/src/util/disk.c
Log:
-fix ftbfs on W32
Modified: gnunet/src/include/gnunet_disk_lib.h
===================================================================
--- gnunet/src/include/gnunet_disk_lib.h 2014-12-04 18:11:42 UTC (rev
34475)
+++ gnunet/src/include/gnunet_disk_lib.h 2014-12-04 18:13:43 UTC (rev
34476)
@@ -506,11 +506,12 @@
*/
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 @@
int require_uid_match,
int require_gid_match);
-#endif
/**
Modified: gnunet/src/util/disk.c
===================================================================
--- gnunet/src/util/disk.c 2014-12-04 18:11:42 UTC (rev 34475)
+++ gnunet/src/util/disk.c 2014-12-04 18:13:43 UTC (rev 34476)
@@ -464,6 +464,24 @@
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
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34476 - in gnunet/src: include util,
gnunet <=