X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=symlinks.c;h=034943bda0e8be781f4a7568f0dbb5b1958f7e15;hb=37be802240a5201750679e20ad599dbb78376c72;hp=3cacebd91adc2958e81d952523bd7cfe0078078c;hpb=f8d0215c8111e586d2d811a451aff1848bae4d96;p=thirdparty%2Fgit.git diff --git a/symlinks.c b/symlinks.c index 3cacebd91a..034943bda0 100644 --- a/symlinks.c +++ b/symlinks.c @@ -223,7 +223,7 @@ int check_leading_path(const char *name, int len) int flags; int match_len = lstat_cache_matchlen(cache, name, len, &flags, FL_SYMLINK|FL_NOENT|FL_DIR, USE_ONLY_LSTAT); - if (flags & (FL_SYMLINK|FL_NOENT)) + if (flags & FL_NOENT) return 0; else if (flags & FL_DIR) return -1;