diff --git a/check-files.c b/check-files.c
index 7d16691aa9d51b5b4670d5837b3527ee7c7da79c..6fd69e79d6c253937498c553662ebe832a020449 100644 (file)
--- a/check-files.c
+++ b/check-files.c
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);
}