From 8e23a2ba4eb7f6192c6bce8a6da81004803eca3f Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Fri, 14 Nov 2008 14:26:59 +0200 Subject: db: checksum installed files, protect config files Checksum of installed is computed on the fly when extracting them and it'll be saved to fdb. When installing config files those are diverted with suffix .apk-new if earlier version of same file with local changes exist. --- src/md5.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/md5.c') diff --git a/src/md5.c b/src/md5.c index e165724..82e670b 100644 --- a/src/md5.c +++ b/src/md5.c @@ -58,6 +58,8 @@ #include "md5.h" +md5sum_t bad_checksum = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; + /* Handle endian-ness */ #if __BYTE_ORDER == __LITTLE_ENDIAN #define SWAP(n) (n) -- cgit v1.2.3-70-g09d2