diff options
| author | Jeff King <peff@peff.net> | 2021-02-16 09:44:37 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-02-16 09:41:33 -0800 |
| commit | adcd9f54729e41aa63c3a1b80a19023ea8ede203 (patch) | |
| tree | 22803d5cdcabd2fb680db6515df36d58bcfbef80 /git-compat-util.h | |
| parent | feb9b7792f0963a818f825bd99be4cda4e8226a5 (diff) | |
| download | git-adcd9f54729e41aa63c3a1b80a19023ea8ede203.tar.gz | |
mailmap: do not respect symlinks for in-tree .mailmap
As with .gitattributes and .gitignore, we would like to make sure that
.mailmap files are handled consistently whether read from the a blob (as
is the default behavior in a bare repo) or from the filesystem.
Likewise, we would like to avoid reading out-of-tree files pointed to by
a symlink, which could have security implications in certain setups.
We can cover both by using open_nofollow() when opening the in-tree
files. We'll continue to follow links for mailmap.file, as well as when
reading .mailmap from the current directory when outside of a repository
entirely.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
0 files changed, 0 insertions, 0 deletions
