CVS commit by ossi:
backport: compat wrapper: don't crash if neither host nor tunnel are
specified.
M +4 -1 config.c 1.4.2.3
--- isync/src/compat/config.c #1.4.2.2:1.4.2.3
@@ -253,5 +253,5 @@ write_imap_server( FILE *fp, config_t *c
/* XXX this does not avoid clashes. add port? */
cfg->server_name = nfstrdup( cfg->host );
- else {
+ else if (cfg->host) {
p = strrchr( cfg->host, '.' );
if (!p)
@@ -272,4 +272,7 @@ write_imap_server( FILE *fp, config_t *c
cfg->servers = 1;
gotsrv: ;
+ } else {
+ fprintf( stderr, "ERROR: Neither host nor tunnel specified for
mailbox %s.\n", cfg->path );
+ exit( 1 );
}
fprintf( fp, "IMAPAccount %s\n", cfg->server_name );
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel