diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index a0d849a8..fa893a30 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -863,12 +863,12 @@ Stream *open_stream_fd_for_write(int fd) } - Stream *open_stream_for_write(const char *filename) { int fd; - fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR); + fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if ( fd == -1 ) { ERROR("Failed to open stream.\n"); return NULL; |