diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index d4bc38c8..7d6d8672 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -3029,7 +3029,7 @@ sub init() { for my $file (glob("$output_dir/*.test"), "$output_dir/init", $tmp_rc_file, $logfile, $key_gen_file) { - next unless -d $file; + next unless -e $file; unlink $file or die "[*] Could not unlink($file)"; }