Merge pull request #2202 from smoelius/permissive_create-in-mark_as_variable

Use `permissive_create` in `mark_as_variable`
This commit is contained in:
van Hauser
2024-09-06 11:48:34 +02:00
committed by GitHub

View File

@ -455,9 +455,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); }
}