index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Travis Willard <travis@archlinux.org> | 2007-09-03 21:28:17 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-09-03 20:50:24 -0500 |
commit | 824b7fd27b490e599025b38e629e53921df5883d (patch) | |
tree | 5c1006c08102ffa2f543464d96fab71dd9d31b67 /lib/libalpm/db.c | |
parent | b3a1619457fa6424570c90c0eaacbbf39fd9662c (diff) |
-rw-r--r-- | lib/libalpm/db.c | 6 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 86165066..09e146e6 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -783,7 +783,11 @@ pmdb_t *_alpm_db_register_sync(const char *treename) } } - db = _alpm_db_new(dbpath, treename); + /* Ensure the db gets the real path. */ + path[0] = '\0'; + snprintf(path, PATH_MAX, "%ssync/", dbpath); + + db = _alpm_db_new(path, treename); if(db == NULL) { RET_ERR(PM_ERR_DB_CREATE, NULL); } |