Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Gate a readme ending in a colon like a disk path
trust-scan-config passed any readme holding a colon as a tracked file, while the parser takes one only when a path follows the colon, so a scanned repository could still name a file on disk outside itself.
-rw-r--r--source/cgit.c6
-rw-r--r--source/scan-tree.c6
-rw-r--r--source/shared.c7
-rw-r--r--source/shared.h6
-rwxr-xr-xtests/t0303-robustness.sh10
5 files changed, 28 insertions, 7 deletions