From 29888601b8bd9600f0dd5efe026294149873e8cd Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 27 Oct 2011 11:42:47 +0000 Subject: [PATCH] bugfix in open with O_CREAT --- src/h5core/h5_attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h5core/h5_attach.c b/src/h5core/h5_attach.c index 83dd29c..7e23271 100644 --- a/src/h5core/h5_attach.c +++ b/src/h5core/h5_attach.c @@ -274,7 +274,7 @@ h5_get_attachment ( // write file if (f->myproc == 0) { int fd; - if ((fd = open (fname, O_WRONLY|O_CREAT|O_TRUNC)) < 0) { + if ((fd = open (fname, O_WRONLY|O_CREAT|O_TRUNC, 0600)) < 0) { H5_CORE_API_LEAVE ( h5_error ( H5_ERR_H5,