diff options
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r-- | lib/rpmts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c index 225cdcfae..26ccca829 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -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, "/"); + } } } |