From 2ea68e88531288c29c5533440d63da6c8136d477 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 7 Mar 2018 19:03:38 +0100 Subject: scripts/rsync-generation/hashgen: count missing and stray files as failed --- scripts/rsync-generation/hashgen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/rsync-generation/hashgen.c b/scripts/rsync-generation/hashgen.c index 7bedc75ca4..c4955f65c7 100644 --- a/scripts/rsync-generation/hashgen.c +++ b/scripts/rsync-generation/hashgen.c @@ -1228,6 +1228,7 @@ verify_dir( mfest, entry, etpe == 'M' ? "MANIFEST" : "DATA"); if (slash != NULL) *slash = ' '; + failed_files++; } curelem++; } else if (cmp > 0) { @@ -1236,6 +1237,7 @@ verify_dir( printf("%s:\n- found excess file: %s\n", mfest, dentries[curdentry]); curdentry++; + failed_files++; } } -- cgit v1.2.3-65-gdbad