From 1851f3f82a021bdf434dd0179738fa672cd83e14 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 15 Oct 2006 14:19:21 +0000 Subject: [PATCH] Fixed permissions of eventually created output file --- test/dewav.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/dewav.c b/test/dewav.c index ba86c21..9178f0c 100644 --- a/test/dewav.c +++ b/test/dewav.c @@ -89,7 +89,8 @@ help:; if(ret<=0) exit(4); if(strcmp(out_path,"-")!=0) { - out_fd= open(out_path, O_WRONLY|O_CREAT|O_TRUNC); + out_fd= open(out_path, O_WRONLY | O_CREAT | O_TRUNC, + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if(out_fd == -1) { fprintf(stderr, "Cannot open file: %s\n", out_path); fprintf(stderr, "Error reported: '%s' (%d)\n",strerror(errno), errno);