diff options
author | Danny van Dyk <kugelfang@gentoo.org> | 2004-04-17 22:36:00 +0000 |
---|---|---|
committer | Danny van Dyk <kugelfang@gentoo.org> | 2004-04-17 22:36:00 +0000 |
commit | 256843ab7a3a0a4d2a68c83c628f2ce6de1dd33a (patch) | |
tree | 226dcdcbfc434af33a6840879d162684632b03f7 /net-misc/dyndnsupdate | |
parent | Added ~sparc keyword. (Manifest recommit) (diff) | |
download | gentoo-2-256843ab7a3a0a4d2a68c83c628f2ce6de1dd33a.tar.gz gentoo-2-256843ab7a3a0a4d2a68c83c628f2ce6de1dd33a.tar.bz2 gentoo-2-256843ab7a3a0a4d2a68c83c628f2ce6de1dd33a.zip |
Fixed BUG #45999
Diffstat (limited to 'net-misc/dyndnsupdate')
-rw-r--r-- | net-misc/dyndnsupdate/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild | 12 | ||||
-rw-r--r-- | net-misc/dyndnsupdate/files/dyndnsupdate-0.6.15-resolution-segfault-fix.patch | 14 |
3 files changed, 31 insertions, 5 deletions
diff --git a/net-misc/dyndnsupdate/ChangeLog b/net-misc/dyndnsupdate/ChangeLog index ca6c937e9db7..8d64d5c47eba 100644 --- a/net-misc/dyndnsupdate/ChangeLog +++ b/net-misc/dyndnsupdate/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/dyndnsupdate -# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dyndnsupdate/ChangeLog,v 1.8 2004/03/01 21:34:08 aliz Exp $ +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/dyndnsupdate/ChangeLog,v 1.9 2004/04/17 22:36:00 kugelfang Exp $ + + 18 Apr 2004; <dvandyk@gentoo.org> + +files/dyndnsupdate-0.6.15-resolution-segfault-fix.patch, + dyndnsupdate-0.6.15.ebuild: + Added patch to keep dyndnsupdate from segfaulting in case the HTTP Reply + for resolving the IP is invalid. *dyndnsupdate-0.6.15 (23 Oct 2002) diff --git a/net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild b/net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild index 7758fb910ab6..4d9de250cec1 100644 --- a/net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild +++ b/net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. +# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild,v 1.1 2003/10/30 04:57:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/dyndnsupdate/dyndnsupdate-0.6.15.ebuild,v 1.2 2004/04/17 22:36:00 kugelfang Exp $ DESCRIPTION="updates the DNS for your hostname/hostnames and other variables at dyndns.org" HOMEPAGE="http://xzabite.org/dyndnsupdate/" @@ -8,10 +8,16 @@ SRC_URI="http://xzabite.org/dyndnsupdate/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86 ppc sparc alpha" +KEYWORDS="x86 ppc sparc alpha ~amd64" DEPEND="" +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-resolution-segfault-fix.patch +} + src_compile() { emake CFLAGS="${CFLAGS}" || die "Failed to compile." } diff --git a/net-misc/dyndnsupdate/files/dyndnsupdate-0.6.15-resolution-segfault-fix.patch b/net-misc/dyndnsupdate/files/dyndnsupdate-0.6.15-resolution-segfault-fix.patch new file mode 100644 index 000000000000..8776882b0c36 --- /dev/null +++ b/net-misc/dyndnsupdate/files/dyndnsupdate-0.6.15-resolution-segfault-fix.patch @@ -0,0 +1,14 @@ +--- src/dyndnsupdate.c.orig 2003-07-02 17:37:41.000000000 +0200 ++++ src/dyndnsupdate.c 2004-04-18 00:07:41.006457888 +0200 +@@ -346,6 +346,11 @@ + sleep(1); + print_msg(LOG_DEBUG, "reply from %s:\n%s", CHECKIPSERVER, get_msg); + ipaddr = strstr(get_msg, "Address: ")+9; ++ if (ipaddr == 9) //dammit +9 ! ++ { ++ perror("invalid reply\n"); ++ exit(1); ++ } + q = strchr(ipaddr, '\n'); *q = '\0'; + print_msg(LOG_INFO, "%s...Done!\n", ipaddr); + sprintf(ipaddress, ipaddr); |