[Groonga-commit] groonga/groonga at 6e9ecf0 [master] dat: fix create file mode

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jun 24 14:42:04 JST 2016


Kouhei Sutou	2016-06-24 14:42:04 +0900 (Fri, 24 Jun 2016)

  New Revision: 6e9ecf056807d057274a63fdf290ef966a94c60c
  https://github.com/groonga/groonga/commit/6e9ecf056807d057274a63fdf290ef966a94c60c

  Message:
    dat: fix create file mode

  Modified files:
    lib/dat/file-impl.cpp

  Modified: lib/dat/file-impl.cpp (+4 -2)
===================================================================
--- lib/dat/file-impl.cpp    2016-06-24 14:11:24 +0900 (75abdba)
+++ lib/dat/file-impl.cpp    2016-06-24 14:42:04 +0900 (5bd442e)
@@ -1,5 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
-/* Copyright(C) 2011-2015 Brazil
+/*
+  Copyright(C) 2011-2016 Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -36,10 +37,11 @@
 #include <algorithm>
 #include <limits>
 
+/* Must be the same value as GRN_OPEN_CREATE_MODE */
 #ifdef WIN32
 # define GRN_IO_FILE_CREATE_MODE (GENERIC_READ | GENERIC_WRITE)
 #else /* WIN32 */
-# define GRN_IO_FILE_CREATE_MODE 0644
+# define GRN_IO_FILE_CREATE_MODE 0640
 #endif /* WIN32 */
 
 namespace grn {
-------------- next part --------------
HTML����������������������������...
Download 



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