fix buglet in parsing the "from XXX" part of symon.conf

also sent upstream of course
This commit is contained in:
henning 2007-07-05 08:55:38 +00:00
parent f9644a2b66
commit 5c2fedd86d
2 changed files with 15 additions and 3 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.28 2007/06/20 17:14:01 mpf Exp $
# $OpenBSD: Makefile,v 1.29 2007/07/05 08:55:38 henning Exp $
COMMENT-main= "active monitoring tool"
V= 2.75
DISTNAME= symon-${V}
PKGNAME-main= ${DISTNAME}p4
PKGNAME-main= ${DISTNAME}p5
CATEGORIES= sysutils net
HOMEPAGE= http://www.xs4all.nl/~wpd/symon
@ -23,7 +23,7 @@ MULTI_PACKAGES= -main -mon -mux
WANTLIB-main= ${WANTLIB} fontconfig
# client only package
FULLPKGNAME-mon= symon-mon-${V}p4
FULLPKGNAME-mon= symon-mon-${V}p5
COMMENT-mon= "active host monitor"
LIB_DEPENDS-mon=
# gatherer only package

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-symon_readconf_c,v 1.1 2007/07/05 08:55:38 henning Exp $
--- symon/readconf.c.orig Sat Jun 23 17:00:42 2007
+++ symon/readconf.c Sat Jun 23 17:01:11 2007
@@ -206,7 +206,7 @@ read_monitor(struct muxlist * mul, struct lex * l)
l->filename, l->cline, l->token);
return 0;
}
- mux->localaddr = xstrdup((const char *) &res_host);
+ mux->localaddr = xstrdup(l->token);
lex_nexttoken(l);
}