diff options
author | vanhauser-thc <vh@thc.org> | 2021-03-05 19:32:27 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-03-05 19:32:27 +0100 |
commit | 9844e1a856d38780a8bff6e15411956e3f183d57 (patch) | |
tree | cb903236c6d81923b77b5d576b87ad7767928e9b | |
parent | 44be521ab8ef5d62847ae48ebdb060d84aae5e47 (diff) | |
download | afl++-9844e1a856d38780a8bff6e15411956e3f183d57.tar.gz |
fix
-rwxr-xr-x | afl-cmin | 4 | ||||
-rwxr-xr-x | afl-cmin.bash | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/afl-cmin b/afl-cmin index 4ee79a79..7f8544eb 100755 --- a/afl-cmin +++ b/afl-cmin @@ -287,6 +287,10 @@ BEGIN { exit 1 } + if (0 == system( "test -d "in_dir"/default" )) { + in_dir = in_dir "/default" + } + if (0 == system( "test -d "in_dir"/queue" )) { in_dir = in_dir "/queue" } diff --git a/afl-cmin.bash b/afl-cmin.bash index dae21939..5b2c3894 100755 --- a/afl-cmin.bash +++ b/afl-cmin.bash @@ -223,6 +223,7 @@ if [ ! -d "$IN_DIR" ]; then exit 1 fi +test -d "$IN_DIR/default" && IN_DIR="$IN_DIR/default" test -d "$IN_DIR/queue" && IN_DIR="$IN_DIR/queue" find "$OUT_DIR" -name 'id[:_]*' -maxdepth 1 -exec rm -- {} \; 2>/dev/null |