diff options
author | Christian Hesse <mail@eworm.de> | 2016-01-30 21:22:44 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-01-30 21:22:44 +0100 |
commit | 59f03055c5d67d00710fc3fb12f46a5ab32f9bf5 (patch) | |
tree | ff3293c4a01c239fc34be9933861ff65f18d2f17 /pacredir.c | |
parent | b56e7126936cd7951680346445887601863bae23 (diff) | |
download | paccache-59f03055c5d67d00710fc3fb12f46a5ab32f9bf5.tar.gz paccache-59f03055c5d67d00710fc3fb12f46a5ab32f9bf5.tar.zst |
correctly handle *.files and redirect to pacdbserve
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -343,7 +343,8 @@ static int ahc_echo(void * cls, } /* process db file request */ - if (strlen(basename) > 3 && strcmp(basename + strlen(basename) - 3, ".db") == 0) { + 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); |