[gegl] Remove S_*GRP and S_*OTH bit flags for file access on the Windows platform



commit 11f25c20e78f5cacb7c4055d4947edb4f97bf554
Author: Michael Schumacher <schumaml gmx de>
Date:   Sat Jun 4 20:59:26 2011 +0200

    Remove S_*GRP and S_*OTH bit flags for file access on the Windows platform

 gegl/buffer/gegl-buffer-save.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-save.c b/gegl/buffer/gegl-buffer-save.c
index 1b73fa8..e94a5b5 100644
--- a/gegl/buffer/gegl-buffer-save.c
+++ b/gegl/buffer/gegl-buffer-save.c
@@ -224,7 +224,14 @@ gegl_buffer_save (GeglBuffer          *buffer,
    */
 
   info->path = g_strdup (path);
+
+#ifndef G_OS_WIN32
   info->o    = open (info->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
+#else
+  info->o    = open (info->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
+#endif
+
+
   if (info->o == -1)
     g_warning ("%s: Could not open '%s': %s", G_STRFUNC, info->path, g_strerror(errno));
   tile_width  = buffer->tile_storage->tile_width;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]