about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorhexcoder <hexcoder-@users.noreply.github.com>2020-04-08 15:25:29 +0200
committerGitHub <noreply@github.com>2020-04-08 15:25:29 +0200
commit2e29e64a3f3ff8cc334d1d9e920e8dcfe74881b8 (patch)
treee60398935e604c000904ee5fdbc4db0d78df16d8 /src/afl-showmap.c
parent15e0319c98d134b39f0d4fce3f4658872154e1b1 (diff)
parent91dc7776ecc52ce92b2bc985d0fa86f84bf72586 (diff)
downloadafl++-2e29e64a3f3ff8cc334d1d9e920e8dcfe74881b8.tar.gz
Merge pull request #295 from devnexen/android_build_fix
Android build fix proposal.
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index f8a38c36..e4463dc4 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -154,7 +154,8 @@ static u32 write_results_to_file(afl_forkserver_t *fsrv, u8 *outfile) {
 
   if (!strncmp(outfile, "/dev/", 5)) {
 
-    fd = open(outfile, O_WRONLY, 0600);
+    fd = open(outfile, O_WRONLY);
+
     if (fd < 0) PFATAL("Unable to open '%s'", fsrv->out_file);
 
   } else if (!strcmp(outfile, "-")) {