Use permissive_create in mark_as_variable

This commit is contained in:
Samuel Moelius
2024-09-05 09:54:26 -04:00
parent 9f6b012fbf
commit b8cb35fa8c

View File

@ -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);
} }