From 96797ca39918aa817811caeb99519f60c1c5d6c3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 1 Jul 2003 23:45:20 +0000 Subject: [PATCH] hcidump: Use correct file permissions --- tools/hcidump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hcidump.c b/tools/hcidump.c index d33b56510..eb44b6467 100644 --- a/tools/hcidump.c +++ b/tools/hcidump.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -183,7 +184,7 @@ static int open_file(char *file, int mode) else flags = O_RDONLY; - if ((f = open(file, flags)) < 0) { + if ((f = open(file, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) < 0) { perror("Can't open output file"); exit(1); } -- 2.47.3