* Just like strbuf_realpath, but allows an arbitrary number of path * components to be missing. */
| 225 | * components to be missing. |
| 226 | */ |
| 227 | char *strbuf_realpath_forgiving(struct strbuf *resolved, const char *path, |
| 228 | int die_on_error) |
| 229 | { |
| 230 | return strbuf_realpath_1(resolved, path, |
| 231 | ((die_on_error ? REALPATH_DIE_ON_ERROR : 0) | |
| 232 | REALPATH_MANY_MISSING)); |
| 233 | } |
| 234 | |
| 235 | char *real_pathdup(const char *path, int die_on_error) |
| 236 | { |
no test coverage detected