summarylogtreecommitdiffstats
path: root/patch_app_dmaxfer
blob: 232415fccf79ce7cff534486ed70825d41d4c937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/QDMA/linux-kernel/apps/dma-xfer/dmaxfer.c b/QDMA/linux-kernel/apps/dma-xfer/dmaxfer.c
index 4145727..5169521 100755
--- a/QDMA/linux-kernel/apps/dma-xfer/dmaxfer.c
+++ b/QDMA/linux-kernel/apps/dma-xfer/dmaxfer.c
@@ -1053,7 +1053,7 @@ static int qdmautils_read(struct queue_info *q_info,
 
 	size = pkt_sz;
 
-	outfile_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC);
+	outfile_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 0600);
 	if (outfile_fd < 0) {
 		printf("Error: unable to open/create output file %s, ret :%d\n",
 				output_file, outfile_fd);