MCPcopy Create free account
hub / github.com/git/git / path_is_beyond_symlink

Function path_is_beyond_symlink

apply.c:4023–4034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4021}
4022
4023static int path_is_beyond_symlink(struct apply_state *state, const char *name_)
4024{
4025 int ret;
4026 struct strbuf name = STRBUF_INIT;
4027
4028 assert(*name_ != '\0');
4029 strbuf_addstr(&name, name_);
4030 ret = path_is_beyond_symlink_1(state, &name);
4031 strbuf_release(&name);
4032
4033 return ret;
4034}
4035
4036static int check_unsafe_path(struct patch *patch)
4037{

Callers 2

check_patchFunction · 0.85
create_one_fileFunction · 0.85

Calls 3

strbuf_addstrFunction · 0.85
path_is_beyond_symlink_1Function · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected