about summary refs log tree commit diff
path: root/src/afl-fuzz-extras.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-23 20:20:59 +0100
committervanhauser-thc <vh@thc.org>2021-03-23 20:21:08 +0100
commitdfe6f7f8c949744eeab7a401affde93729a5b39d (patch)
tree18c4cd0370a184b26afa10b4a86da6da9cfdace0 /src/afl-fuzz-extras.c
parent5fcd634f05049564dde59df420ac1c2f291a2fb0 (diff)
downloadafl++-dfe6f7f8c949744eeab7a401affde93729a5b39d.tar.gz
make setting different file permissions easy via config.h
Diffstat (limited to 'src/afl-fuzz-extras.c')
-rw-r--r--src/afl-fuzz-extras.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c
index 52100fa1..6091db15 100644
--- a/src/afl-fuzz-extras.c
+++ b/src/afl-fuzz-extras.c
@@ -731,7 +731,7 @@ void save_auto(afl_state_t *afl) {
         alloc_printf("%s/queue/.state/auto_extras/auto_%06u", afl->out_dir, i);
     s32 fd;
 
-    fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0600);
+    fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, DEFAULT_PERMISSION);
 
     if (fd < 0) { PFATAL("Unable to create '%s'", fn); }