[PATCH] git and symlinks as tracked content
[git.git] / diff-cache.c
index 03dd69d..94c5f66 100644 (file)
@@ -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) {