CVS commit by ossi:
don't crash on truncating database. seems to affect only some bdb
versions (e.g., 4.2).
M +3 -2 drv_maildir.c 1.21
--- isync/src/drv_maildir.c #1.20:1.21
@@ -366,5 +366,6 @@ maildir_init_uid( maildir_store_t *ctx,
#ifdef USE_DB
if (ctx->db) {
- ctx->db->truncate( ctx->db, 0, 0 /* &u_int32_t_dummy */, 0 );
+ u_int32_t count;
+ ctx->db->truncate( ctx->db, 0, &count, 0 );
return maildir_set_uid( ctx, 0, 0 );
}
@@ -497,5 +498,5 @@ maildir_scan( maildir_store_t *ctx, msgl
#endif /* USE_DB */
msg_t *entry;
- int i, j, uid, bl, ml, fnl, ret;
+ int i, j, uid, bl, fnl, ret;
struct stat st;
char buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX];
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel