diff options
Diffstat (limited to 'diff-cache.c')
-rw-r--r-- | diff-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-cache.c b/diff-cache.c index 03dd69df3e..94c5f6654b 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -24,7 +24,7 @@ static int get_stat_data(struct cache_entry *ce, unsigned char **sha1p, unsigned static unsigned char no_sha1[20]; int changed; struct stat st; - if (stat(ce->name, &st) < 0) + if (lstat(ce->name, &st) < 0) return -1; changed = cache_match_stat(ce, &st); if (changed) { |