mirror of https://gitee.com/bigwinds/arangodb
add group privileges for files created
Conflicts: lib/Basics/json.cpp
This commit is contained in:
parent
a062280783
commit
daac3dd00c
|
@ -174,7 +174,7 @@ static int CreateSparseFile (char const* filename,
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
// open the file
|
// open the file
|
||||||
fd = TRI_CREATE(filename, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR);
|
fd = TRI_CREATE(filename, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
||||||
|
|
|
@ -993,7 +993,7 @@ bool TRI_SaveJson (char const* filename,
|
||||||
TRI_UnlinkFile(tmp);
|
TRI_UnlinkFile(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
int fd = TRI_CREATE(tmp, O_CREAT | O_TRUNC | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR);
|
int fd = TRI_CREATE(tmp, O_CREAT | O_TRUNC | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
TRI_set_errno(TRI_ERROR_SYS_ERROR);
|
||||||
|
|
Loading…
Reference in New Issue