The util_chdir2path function changes the current working directory. Because a server process can service multiple requests concurrently but has only a single current working directory, this function should not be used.
int util_chdir2path(char *path);
0 if the directory change succeeds, or -1 if the directory can not be changed.
char *path is the name of a directory.
The parameter must be a writable string.