X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff-files.c;h=c51edc3315100d8ec75eec72ec2f8a7e3753ad98;hb=ace1534d6f3a710ed82e7e27ba1fe77c0c278695;hp=0cf2c244100e4266c00eddf430a28ed2d859fa4a;hpb=17710391299af14fc38cdee10cc7cc9d44668329;p=git.git diff --git a/diff-files.c b/diff-files.c index 0cf2c2441..c51edc331 100644 --- a/diff-files.c +++ b/diff-files.c @@ -111,7 +111,7 @@ int main(int argc, char **argv) continue; } - if (stat(ce->name, &st) < 0) { + if (lstat(ce->name, &st) < 0) { if (errno != ENOENT) { perror(ce->name); continue;