Remove trailing slashes from tracedir
This commit is contained in:
parent
6aba89a8a8
commit
5e502b67d2
@ -105,6 +105,10 @@ trace_load(struct trace *trace, const char *tracedir)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove trailing slashes from tracedir */
|
||||||
|
path_remove_trailing(trace->tracedir);
|
||||||
|
tracedir = trace->tracedir;
|
||||||
|
|
||||||
/* Try to open the directory to catch permission errors */
|
/* Try to open the directory to catch permission errors */
|
||||||
DIR *dir = opendir(tracedir);
|
DIR *dir = opendir(tracedir);
|
||||||
if (dir == NULL) {
|
if (dir == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user