diff options
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |