diff options
author | Samuel Moelius <sam@moeli.us> | 2024-09-05 09:54:26 -0400 |
---|---|---|
committer | Samuel Moelius <sam@moeli.us> | 2024-09-05 09:56:38 -0400 |
commit | b8cb35fa8c52300b3387a82efc0ca5480147d1d1 (patch) | |
tree | a737ee315b87df990a0b8771a49418277a0405b2 | |
parent | 9f6b012fbfc8b79dda83e73a208e429aaf25e7ee (diff) | |
download | afl++-b8cb35fa8c52300b3387a82efc0ca5480147d1d1.tar.gz |
Use `permissive_create` in `mark_as_variable`
-rw-r--r-- | src/afl-fuzz-queue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index f4cb930d..313e8ae5 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -367,9 +367,8 @@ void mark_as_variable(afl_state_t *afl, struct queue_entry *q) { if (symlink(ldest, fn)) { - s32 fd = open(fn, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION); - if (fd < 0) { PFATAL("Unable to create '%s'", fn); } - close(fd); + s32 fd = permissive_create(afl, fn); + if (fd >= 0) { close(fd); } } |