mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
fix GNUmakefile
This commit is contained in:
@ -1383,16 +1383,18 @@ void setup_dirs_fds(afl_state_t *afl) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (afl->is_master) {
|
if (afl->is_master) {
|
||||||
|
|
||||||
u8 *x = alloc_printf("%s/is_master", afl->sync_dir);
|
u8 *x = alloc_printf("%s/%s/is_master", afl->sync_dir, afl->sync_id);
|
||||||
int fd = open(x, O_CREAT | O_RDWR, 0644);
|
int fd = open(x, O_CREAT | O_RDWR, 0644);
|
||||||
if (fd < 0) FATAL("cannot create %s", x);
|
if (fd < 0) FATAL("cannot create %s", x);
|
||||||
|
free(x);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
*/
|
||||||
|
|
||||||
if (mkdir(afl->out_dir, 0700)) {
|
if (mkdir(afl->out_dir, 0700)) {
|
||||||
|
|
||||||
|
@ -401,6 +401,20 @@ void sync_fuzzers(afl_state_t *afl) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// a slave only syncs from a master, a master syncs from everyone
|
||||||
|
if (likely(afl->is_slave)) {
|
||||||
|
|
||||||
|
u8 x = alloc_printf("%s/%s/is_master", afl->sync_dir, sd_ent->d_name);
|
||||||
|
int res = access(x, F_OK);
|
||||||
|
free(x);
|
||||||
|
if (res != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
/* Skip anything that doesn't have a queue/ subdirectory. */
|
/* Skip anything that doesn't have a queue/ subdirectory. */
|
||||||
|
|
||||||
qd_path = alloc_printf("%s/%s/queue", afl->sync_dir, sd_ent->d_name);
|
qd_path = alloc_printf("%s/%s/queue", afl->sync_dir, sd_ent->d_name);
|
||||||
|
Reference in New Issue
Block a user