mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
fix -M check
This commit is contained in:
@ -1315,15 +1315,18 @@ dir_cleanup_failed:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If this is a -S slave, ensure a -M master is running */
|
/* If this is a -S slave, ensure a -M master is running, if a master is
|
||||||
|
running when another master is started then warn */
|
||||||
|
|
||||||
int check_master_exists(afl_state_t *afl) {
|
int check_master_exists(afl_state_t *afl) {
|
||||||
|
|
||||||
DIR * sd;
|
DIR * sd;
|
||||||
struct dirent *sd_ent;
|
struct dirent *sd_ent;
|
||||||
u8 * fn;
|
u8 * fn;
|
||||||
|
|
||||||
sd = opendir(afl->sync_dir);
|
sd = opendir(afl->sync_dir);
|
||||||
if (!sd) { PFATAL("Unable to open '%s'", afl->sync_dir); }
|
if (!sd) { return 0; }
|
||||||
|
|
||||||
while ((sd_ent = readdir(sd))) {
|
while ((sd_ent = readdir(sd))) {
|
||||||
|
|
||||||
/* Skip dot files and our own output directory. */
|
/* Skip dot files and our own output directory. */
|
||||||
|
Reference in New Issue
Block a user