[Groonga-commit] groonga/groonga at dddff2e [master] Fix flags parameter for BSD mkostemp(3).

Back to archive index

Jun Kuriyama null+****@clear*****
Fri Nov 7 14:53:43 JST 2014


Jun Kuriyama	2014-11-07 14:53:43 +0900 (Fri, 07 Nov 2014)

  New Revision: dddff2ea371cd8928b5ff1d965ea6724e4d0f807
  https://github.com/groonga/groonga/commit/dddff2ea371cd8928b5ff1d965ea6724e4d0f807

  Merged 83c8500: Merge pull request #240 from kuriyama/mkostemp-fix

  Message:
    Fix flags parameter for BSD mkostemp(3).

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -0)
===================================================================
--- lib/ii.c    2014-11-07 00:58:35 +0900 (2107969)
+++ lib/ii.c    2014-11-07 14:53:43 +0900 (b170bbf)
@@ -7173,6 +7173,9 @@ grn_ii_buffer_open(grn_ctx *ctx, grn_ii *ii,
 #ifdef WIN32
           open_flags |= O_BINARY;
 #endif
+#if defined(BSD)
+          open_flags = 0;
+#endif
           snprintf(ii_buffer->tmpfpath, PATH_MAX,
                    "%sXXXXXX", grn_io_path(ii->seg));
           ii_buffer->block_buf_size = II_BUFFER_BLOCK_SIZE;
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index