mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
Use permissive_create
in mark_as_variable
This commit is contained in:
@ -367,9 +367,8 @@ void mark_as_variable(afl_state_t *afl, struct queue_entry *q) {
|
|||||||
|
|
||||||
if (symlink(ldest, fn)) {
|
if (symlink(ldest, fn)) {
|
||||||
|
|
||||||
s32 fd = open(fn, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
|
s32 fd = permissive_create(afl, fn);
|
||||||
if (fd < 0) { PFATAL("Unable to create '%s'", fn); }
|
if (fd >= 0) { close(fd); }
|
||||||
close(fd);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user