X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=sha1_file.c;h=d86a8db69ade6fd26ebd88bbb361a7a86838f14e;hb=ad5aeeded3295589b2573b143f754762a56f8f82;hp=1cafdfa617a833ec757b481826dc62282be8f374;hpb=1e86274cd4e544628d5f6e327eb62094051e7948;p=git.git diff --git a/sha1_file.c b/sha1_file.c index 1cafdfa61..d86a8db69 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2141,7 +2141,7 @@ void *read_sha1_file_repl(const unsigned char *sha1, return data; } - if (errno != ENOENT) + if (errno && errno != ENOENT) die_errno("failed to read object %s", sha1_to_hex(sha1)); /* die if we replaced an object with one that does not exist */