Only append trailing slash to ts rootdir if rootdir != "/"
This commit is contained in:
parent
8a024c20e7
commit
42d0c3bd68
|
@ -967,7 +967,9 @@ void rpmtsSetRootDir(rpmts ts, const char * rootDir)
|
|||
|
||||
/* Ensure clean path with a trailing slash */
|
||||
ts->rootDir = rpmGetPath(rootDir, NULL);
|
||||
rstrcat(&ts->rootDir, "/");
|
||||
if (strcmp(ts->rootDir, "/") != 0) {
|
||||
rstrcat(&ts->rootDir, "/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue