summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
98b6832)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
struct dirent *dirent;
struct dirent *diriter;
size_t dirent_len;
struct dirent *dirent;
struct dirent *diriter;
size_t dirent_len;
+ char *respath, *rescolpath;
ret = -errno;
goto error_dirfd;
}
ret = -errno;
goto error_dirfd;
}
- respath = realpath(collection_path, td->collection_path);
- if (!respath) {
+ rescolpath = realpath(collection_path, td->collection_path);
+ if (!rescolpath) {
+ fprintf(stdout, "[error] collection path resolution failure\n");
+ return -EINVAL;
+ }
+ respath = realpath(path, td->path);
+ if (!rescolpath) {
fprintf(stdout, "[error] path resolution failure\n");
return -EINVAL;
}
fprintf(stdout, "[error] path resolution failure\n");
return -EINVAL;
}
- strncpy(td->path, path, PATH_MAX);
- td->path[PATH_MAX - 1] = '\0';
init_domain_name(td);
init_proc_name(td);
init_vpid(td);
init_domain_name(td);
init_proc_name(td);
init_vpid(td);