From 48c6090098483dca972827eaa870413beb6ce8fc Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 29 Oct 2005 07:09:48 +0000 Subject: added PACCONF, PACDB and PACROOT defines --- src/pacman/pacman.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index af1ef932..698cbfe2 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) } if(config->root == NULL) { - config->root = strdup("/"); + config->root = strdup(PACROOT); } /* add a trailing '/' if there isn't one */ @@ -143,14 +143,14 @@ int main(int argc, char *argv[]) if(config->configfile == NULL) { config->configfile = strdup(PACCONF); } - if(parseconfig(config) == -1) { + if(parseconfig(config->configfile, config) == -1) { cleanup(1); } if(config->dbpath == NULL) { - config->dbpath = strdup("var/lib/pacman"); + config->dbpath = strdup(PACDB); } if(config->cachedir == NULL) { - config->cachedir = strdup("var/cache/pacman"); + config->cachedir = strdup(PACCACHE); } /* set library parameters */ -- cgit v1.2.3