From 71a966a7d0803db1a43bdf6a73f5381a7789eab9 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 17 Oct 2002 08:31:32 +0000 Subject: [PATCH] Add permission bits when we open with O_CREAT (b=624321). --- lustre/tests/lovstripe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/lovstripe.c b/lustre/tests/lovstripe.c index 4c19dba..5f004e4 100644 --- a/lustre/tests/lovstripe.c +++ b/lustre/tests/lovstripe.c @@ -66,7 +66,7 @@ int write_file(char *name, struct lov_user_md *striping) int fd, result; printf("opening %s\n", name); - fd = open(name, O_CREAT | O_RDWR | O_LOV_DELAY_CREATE); + fd = open(name, O_CREAT | O_RDWR | O_LOV_DELAY_CREATE, 0644); if (fd < 0) { fprintf(stderr, "\nUnable to open '%s': %s\n", name, strerror(errno)); -- 1.8.3.1