aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent2318b7aafd193e4dfa5c4e0c5e3ed2a687e97ea0 (diff)
downloadgnunet-2945255c1a0475b6ec566da645952e4de4fee5e4.tar.gz
gnunet-2945255c1a0475b6ec566da645952e4de4fee5e4.zip
-fix ftbfs on W32
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_disk_lib.h4
-rw-r--r--src/util/disk.c18
2 files changed, 20 insertions, 2 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index 7de64abff..f14285f89 100644
--- 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,
506 */ 506 */
507struct GNUNET_DISK_FileHandle * 507struct GNUNET_DISK_FileHandle *
508GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh); 508GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh);
509#else 509#endif
510 510
511/** 511/**
512 * Update POSIX permissions mask of a file on disk. If both argumets 512 * Update POSIX permissions mask of a file on disk. If both argumets
513 * are #GNUNET_NO, the file is made world-read-write-executable (777). 513 * are #GNUNET_NO, the file is made world-read-write-executable (777).
514 * Does nothing on W32.
514 * 515 *
515 * @param fn name of the file to update 516 * @param fn name of the file to update
516 * @param require_uid_match #GNUNET_YES means 700 517 * @param require_uid_match #GNUNET_YES means 700
@@ -521,7 +522,6 @@ GNUNET_DISK_fix_permissions (const char *fn,
521 int require_uid_match, 522 int require_uid_match,
522 int require_gid_match); 523 int require_gid_match);
523 524
524#endif
525 525
526 526
527/** 527/**
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/**