* fix some pointer usage
* install sample configuration file
This commit is contained in:
parent
3de393eba7
commit
7745bde948
20
mail/isync/patches/patch-config_c
Normal file
20
mail/isync/patches/patch-config_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-config_c,v 1.1 2002/04/24 18:16:22 danh Exp $
|
||||
--- config.c.orig Wed Apr 24 13:53:28 2002
|
||||
+++ config.c Wed Apr 24 13:56:36 2002
|
||||
@@ -324,8 +324,12 @@ find_box (const char *s)
|
||||
void
|
||||
free_config (void)
|
||||
{
|
||||
- free (global.user);
|
||||
- free (global.maildir);
|
||||
- free (global.host);
|
||||
- free (global.pass);
|
||||
+ if (global.user)
|
||||
+ free (global.user);
|
||||
+ if (global.maildir)
|
||||
+ free (global.maildir);
|
||||
+ if (global.host)
|
||||
+ free (global.host);
|
||||
+ if (global.pass)
|
||||
+ free (global.pass);
|
||||
}
|
17
mail/isync/patches/patch-main_c
Normal file
17
mail/isync/patches/patch-main_c
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-main_c,v 1.1 2002/04/24 18:16:22 danh Exp $
|
||||
--- main.c.orig Wed Apr 24 13:58:36 2002
|
||||
+++ main.c Wed Apr 24 14:00:23 2002
|
||||
@@ -212,11 +212,11 @@ main (int argc, char **argv)
|
||||
optarg += 6;
|
||||
}
|
||||
#endif
|
||||
- global.host = optarg;
|
||||
+ global.host = strdup(optarg);
|
||||
break;
|
||||
case 'u':
|
||||
free (global.user);
|
||||
- global.user = optarg;
|
||||
+ global.user = strdup(optarg);
|
||||
break;
|
||||
case 'V':
|
||||
Verbose = 1;
|
@ -1,3 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/19 16:19:46 danh Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2002/04/24 18:16:22 danh Exp $
|
||||
bin/isync
|
||||
man/man1/isync.1
|
||||
share/examples/isync/sample.isyncrc
|
||||
@dirrm share/examples/isync
|
||||
|
Loading…
Reference in New Issue
Block a user