Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index a05af5da..9ec4c92e 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -105,7 +105,7 @@ static int sync_cleandb(const char *dbpath)
dbname = strndup(dname, len - 7);
} else if(len > 6 && strcmp(dname + len - 6, ".files") == 0) {
dbname = strndup(dname, len - 6);
- } else if(len > 6 && strcmp(dname + len - 6, ".files.sig") == 0) {
+ } else if(len > 10 && strcmp(dname + len - 10, ".files.sig") == 0) {
dbname = strndup(dname, len - 10);
} else {
ret += unlink_verbose(path, 0);