| 4021 | } |
| 4022 | |
| 4023 | static 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 | |
| 4036 | static int check_unsafe_path(struct patch *patch) |
| 4037 | { |
no test coverage detected