X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=check-files.c;h=6fd69e79d6c253937498c553662ebe832a020449;hb=7ab6f3d437b9dbe5c139162777ee46d224371ee7;hp=7d16691aa9d51b5b4670d5837b3527ee7c7da79c;hpb=2de381f919829aec1e35d6c7cc33519295dcd053;p=git.git diff --git a/check-files.c b/check-files.c index 7d16691a..6fd69e79 100644 --- a/check-files.c +++ b/check-files.c @@ -28,10 +28,10 @@ static void check_file(const char *path) die("preparing to update existing file '%s' not in cache", path); ce = active_cache[pos]; - if (fstat(fd, &st) < 0) - die("fstat(%s): %s", path, strerror(errno)); + if (lstat(path, &st) < 0) + die("lstat(%s): %s", path, strerror(errno)); - changed = cache_match_stat(ce, &st); + changed = ce_match_stat(ce, &st); if (changed) die("preparing to update file '%s' not uptodate in cache", path); }