summaryrefslogtreecommitdiff
path: root/tests/diff/patch.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-09-25 15:19:22 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-09-26 17:46:07 -0400
commitf5a9f0a2587f4fa2d02ee74b0522a0fd99fabe98 (patch)
treefde3ffda01cf48174420caeff10a19e6a96a7453 /tests/diff/patch.c
parent136901086ecfdd2b5cc106782310355a9c0b1a9a (diff)
downloadlibgit2-f5a9f0a2587f4fa2d02ee74b0522a0fd99fabe98.tar.gz
attr_file: don't validate workdir paths in attr lookups
When looking up attributes for a file, we construct an absolute path to the queried file within the working directory so that we can accept both absolute paths and working directory relative paths. We then trim the leading working directory path to give us an in-repo path. Since we only want the in-repo path to look up attributes - and not to read it from disk - we don't need to validate its length.
Diffstat (limited to 'tests/diff/patch.c')
0 files changed, 0 insertions, 0 deletions