summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-01-30 21:25:11 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-01-30 21:25:11 +0100
commit6be04294c6c5b0a3944aa49dea4b3cff5125582e (patch)
tree07a22486c3377a82bcb690817c5094d24dfbb10f /pacredir.c
parentb56e7126936cd7951680346445887601863bae23 (diff)
parent7155f749317fc54fca48d984142f0aeb52aac6e7 (diff)
downloadpaccache-6be04294c6c5b0a3944aa49dea4b3cff5125582e.tar.gz
paccache-6be04294c6c5b0a3944aa49dea4b3cff5125582e.tar.zst
Merge branch 'pacman-5-0'
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pacredir.c b/pacredir.c
index 13fbe3c..273dd39 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -342,8 +342,9 @@ static int ahc_echo(void * cls,
goto response;
}
- /* process db file request */
- if (strlen(basename) > 3 && strcmp(basename + strlen(basename) - 3, ".db") == 0) {
+ /* process db file request (*.db and *.files) */
+ if ((strlen(basename) > 3 && strcmp(basename + strlen(basename) - 3, ".db") == 0) ||
+ (strlen(basename) > 6 && strcmp(basename + strlen(basename) - 6, ".files") == 0)) {
dbfile = 1;
/* get timestamp of local file */
filename = malloc(strlen(SYNCPATH) + strlen(basename) + 2);