meowsum.git

commit 97b1bb1d9f2f8331e263d6701ab9f0f46088e93a

Author: Adam <git@apiote.tk>

check for missing files while checking sums

 meowsum.c | 8 +++++++-


diff --git a/meowsum.c b/meowsum.c
index 035e8a38d96dcee60988499217aec67f296f2f2c..e8536a22ab47ab42e2ee40b17c46a5deff3faca6 100644
--- a/meowsum.c
+++ b/meowsum.c
@@ -214,7 +214,13 @@         if (!quiet) {
           printf("[WARN] stdin on the list in %s\n", argv[i]);
         }
       } else {
-        // todo missing
+        if (access(path, F_OK) == -1) {
+          printf("ERM %s\n", path);
+          if (strict_errors) {
+            result &= false;
+          }
+          continue;
+        }
         hash = calculate_checksum(path, &size);
         if (hash == NULL) {
           fprintf(stderr, "error while calculating %s\n", path);