X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff-no-index.c;h=0dbd9dad8b100cdd4918571636ad3e9a1a0a2abf;hb=418566b6fdcc0eb1b5549d0742366aa13a7ff277;hp=60ed17470a6a2bf9bea202a04004b06d207a77d7;hpb=a9ed6ce0e7057b94809d3c51094ba96fe96fded8;p=git.git diff --git a/diff-no-index.c b/diff-no-index.c index 60ed17470..0dbd9dad8 100644 --- a/diff-no-index.c +++ b/diff-no-index.c @@ -40,7 +40,7 @@ static int get_mode(const char *path, int *mode) *mode = 0; else if (!strcmp(path, "-")) *mode = create_ce_mode(0666); - else if (stat(path, &st)) + else if (lstat(path, &st)) return error("Could not access '%s'", path); else *mode = st.st_mode;