index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-09-28 19:33:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-12 21:27:52 -0500 |
commit | 18452a6c51827e91f37978397552c30cb92c26cd (patch) | |
tree | c4d8dbd14574039b2167d8cc3d4dd194668118b1 /src | |
parent | 242e9e90f4190b9f770a0230e99d302f7ec53e70 (diff) |
-rw-r--r-- | src/pacman/pacman.c | 6 |
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 81f07dac..3a56a9d3 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -262,11 +262,13 @@ static void setlibpaths(void) cleanup(ret); } if(!config->dbpath) { - snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), DBPATH); + /* omit leading slash from our static DBPATH, root handles it */ + snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), DBPATH + 1); config->dbpath = strdup(path); } if(!config->logfile) { - snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), LOGFILE); + /* omit leading slash from our static LOGFILE path, root handles it */ + snprintf(path, PATH_MAX, "%s%s", alpm_option_get_root(), LOGFILE + 1); config->logfile = strdup(path); } } |