| 44 | } |
| 45 | |
| 46 | static void reparent_cb(const char *name, |
| 47 | const char *old_cwd, |
| 48 | const char *new_cwd, |
| 49 | void *data) |
| 50 | { |
| 51 | char **path = data; |
| 52 | char *tmp = *path; |
| 53 | |
| 54 | if (!tmp) |
| 55 | return; |
| 56 | |
| 57 | *path = reparent_relative_path(old_cwd, new_cwd, tmp); |
| 58 | free(tmp); |
| 59 | |
| 60 | if (name) { |
| 61 | trace_printf_key(&trace_setup_key, |
| 62 | "setup: reparent %s to '%s'", |
| 63 | name, *path); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | void chdir_notify_reparent(const char *name, char **path) |
| 68 | { |
nothing calls this directly
no test coverage detected