logo

cmd-fuzzmatch

use ssdeep libfuzzy to find matching files git clone https://anongit.hacktivis.me/git/cmd-fuzzmatch.git
commit: 0963695027f2fb41d56ce8aa22bb7c8ac8cb4123
parent 968f80821170472f3adaab7d959efc3aff260382
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  2 May 2026 17:42:36 +0200

Print error message on fuzzy_hash_filename() failure

Diffstat:

Mfuzzmatch.c3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/fuzzmatch.c b/fuzzmatch.c @@ -142,7 +142,10 @@ main(int argc, char *argv[]) char res[FUZZY_MAX_RESULT]; if(fuzzy_hash_filename(argv[argi], res) != 0) + { + fprintf(stderr, "fuzzmatch: error: Failed hashing file '%s': %s\n", argv[argi], strerror(errno)); return 2; + } size_t mi = 0; for(; mi < matches_len; mi++)