summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-20 22:04:20 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-20 22:04:20 +0000
commit621e241279c37f00775f5e06f15f6928b969cdc7 (patch)
tree308f7dd3b8db5e54025a5165ef45c3135cde941d
parent73fa6fb9d957ca862e64f6dd2ee102717d88d388 (diff)
downloadpacman-621e241279c37f00775f5e06f15f6928b969cdc7.tar.xz
Let the C preprocessor concatenates CACHEDIR string
-rw-r--r--src/pacman/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 581d07e5..e7aeb06e 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -127,7 +127,7 @@ static int sync_cleancache(int level)
for(i = clean; i; i = i->next) {
char path[PATH_MAX];
- snprintf(path, PATH_MAX, "%s%s/%s", root, CACHEDIR, (char *)i->data);
+ snprintf(path, PATH_MAX, "%s"CACHEDIR"/%s", root, (char *)i->data);
unlink(path);
}
FREELIST(clean);
@@ -137,7 +137,7 @@ static int sync_cleancache(int level)
mode_t oldmask;
char path[PATH_MAX];
- snprintf(path, PATH_MAX, "%s%s", root, CACHEDIR);
+ snprintf(path, PATH_MAX, "%s"CACHEDIR, root);
printf("removing all packages from cache... ");
if(rmrf(path)) {