aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-04 18:13:43 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-04 18:13:43 +0000
commit2945255c1a0475b6ec566da645952e4de4fee5e4 (patch)
treef205c1d7d44992de80ae0177031d15381432a7b5 /src/util
parent2318b7aafd193e4dfa5c4e0c5e3ed2a687e97ea0 (diff)
downloadgnunet-2945255c1a0475b6ec566da645952e4de4fee5e4.tar.gz
gnunet-2945255c1a0475b6ec566da645952e4de4fee5e4.zip
-fix ftbfs on W32
Diffstat (limited to 'src/util')
-rw-r--r--src/util/disk.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index b7ff4c3f4..6753d8141 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -464,6 +464,24 @@ mkdtemp (char *fn)
464 strcpy (fn, tfn); 464 strcpy (fn, tfn);
465 return fn; 465 return fn;
466} 466}
467
468/**
469 * Update POSIX permissions mask of a file on disk. If both argumets
470 * are #GNUNET_NO, the file is made world-read-write-executable (777).
471 * Does nothing on W32.
472 *
473 * @param fn name of the file to update
474 * @param require_uid_match #GNUNET_YES means 700
475 * @param require_gid_match #GNUNET_YES means 770 unless @a require_uid_match is set
476 */
477void
478GNUNET_DISK_fix_permissions (const char *fn,
479 int require_uid_match,
480 int require_gid_match)
481{
482 /* nothing on W32 */
483}
484
467#else 485#else
468 486
469/** 487/**