Diff between 347888633da0360b40b7d7f319941a2b7bd98725 and 96797ca39918aa817811caeb99519f60c1c5d6c3
Changed Files
| File | Additions | Deletions | Status |
| tools/hcidump.c | +2 | -1 | modified |
Full Patch
diff --git a/tools/hcidump.c b/tools/hcidump.c
index d33b565..eb44b64 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
@@ -37,6 +37,7 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/uio.h>
+#include <sys/stat.h>
#include <netinet/in.h>
#include <bluetooth/bluetooth.h>
@@ -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);
}