sha1_file: rename LOOKUP_UNKNOWN_OBJECT
[gitweb.git] / diff-lib.c
index 2982bf055acb6049a8cd6007244d60d985b7e619..76c8f185cd032b92e010b95e4d92e3b08a6ab18a 100644 (file)
@@ -29,7 +29,7 @@
 static int check_removed(const struct cache_entry *ce, struct stat *st)
 {
        if (lstat(ce->name, st) < 0) {
-               if (errno != ENOENT && errno != ENOTDIR)
+               if (!is_missing_file_error(errno))
                        return -1;
                return 1;
        }