Every caller here creates a directory under the user's own configuration * (skills, instruction files, the cache), so a symlink the user owns on the * way there is the user's own arrangement and is followed. Repository-derived * paths never come through this wrapper. */
| 1622 | * way there is the user's own arrangement and is followed. Repository-derived |
| 1623 | * paths never come through this wrapper. */ |
| 1624 | static int mkdirp(const char *path, int mode) { |
| 1625 | return (int)cbm_mkdir_p_ex(path, mode, CBM_MKDIR_FOLLOW_OWNED) ? 0 : CLI_ERR; |
| 1626 | } |
| 1627 | |
| 1628 | /* Legacy migration may remove an empty directory, but never recursively |
| 1629 | * delete a tree it cannot prove it owns. POSIX lstat prevents following a |
no test coverage detected