Lines Matching defs:path
59 * Build path relativ to volume root
61 * path might be:
67 * @param path (r) path relative to cwd() or absolute
68 * @param volpath (r) volume path that path is a subdir of (has been computed in volinfo funcs)
70 * @returns relative path in new bstring, caller must bdestroy it
72 bstring rel_path_in_vol(const char *path, const char *volpath)
80 if (path == NULL || volpath == NULL)
85 EC_ZERO_LOGSTR(lstat(path, &st), "lstat(%s): %s", path, strerror(errno));
87 if (path[0] == '/') {
88 EC_NULL(fpath = bfromcstr(path));
93 EC_NULL_LOG(dname = strdup(path));
100 EC_NULL_LOG(dname = strdup(path));
105 EC_ZERO_LOGSTR(chdir(path), "chdir(%s): %s", path, strerror(errno));