From: adilger Date: Thu, 17 Oct 2002 08:31:32 +0000 (+0000) Subject: Add permission bits when we open with O_CREAT (b=624321). X-Git-Tag: 0.5.15~102 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=71a966a7d0803db1a43bdf6a73f5381a7789eab9;p=fs%2Flustre-release.git Add permission bits when we open with O_CREAT (b=624321). --- 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));