1
0
Fork 0

add group privileges for files created

Conflicts:
	lib/Basics/json.cpp
This commit is contained in:
Jan Steemann 2015-03-18 12:16:55 +01:00
parent a062280783
commit daac3dd00c
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ static int CreateSparseFile (char const* filename,
int fd;
// 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) {
TRI_set_errno(TRI_ERROR_SYS_ERROR);

View File

@ -993,7 +993,7 @@ bool TRI_SaveJson (char const* filename,
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) {
TRI_set_errno(TRI_ERROR_SYS_ERROR);