Date: Tue, 18 Feb 2003 17:41:07 +0100 (CET) From: Christian Lackas <delta@lackas.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: <delta@lackas.net>, <cyrille.lefevre@laposte.net> Subject: ports/48428: net/ddup: default system=dyndns (Update to pr ports/40966) Message-ID: <200302181641.h1IGf7F2002551@zel726.zel.kfa-juelich.de>
next in thread | raw e-mail | index | archive | help
>Number: 48428 >Category: ports >Synopsis: net/ddup: default system=dyndns (Update to pr ports/40966) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Feb 18 08:50:10 PST 2003 >Closed-Date: >Last-Modified: >Originator: Christian Lackas >Release: FreeBSD 4.7-STABLE i386 >Organization: Research Center Juelich >Environment: System: FreeBSD zel726.zel.kfa-juelich.de 4.7-STABLE FreeBSD 4.7-STABLE #0: Mon Feb 17 18:19:56 CET 2003 root@zel726.zel.kfa-juelich.de:/usr/obj/usr/src/sys/DELTA i386 >Description: Update to: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/40966 ddup fails with »badsys« if no --dynamic, --static or --custom is given, but the default mode should (IMHO) be »system=dynamic«. In the original (unpatched) ddup it works that way and DynDNS uses the same default value. In the current version a request like GET /nic/update?system=&hostname=hostname HTTP/1.0 is generated if the system is not explicitly given. Such a request is invalid and rejected by DynDNS (»badsys«). The request GET /nic/update?hostname=hostname HTTP/1.0 would work (with implicit system=dyndns). >How-To-Repeat: ddup --host yourhost >Fix: Apply the appended patch to files/patch-update.c to set the default system to »dynamic«. --- files/patch-update.c.orig Tue Feb 18 17:10:11 2003 +++ files/patch-update.c Tue Feb 18 17:11:09 2003 @@ -17,10 +17,10 @@ - else - strcat(buf_out, "dyn"); + strcat(buf_out, "statdns"); -+ else if (dynamic_flag) -+ strcat(buf_out, "dyndns"); + else if (custom_flag) + strcat(buf_out, "custom"); ++ else ++ strcat(buf_out, "dyndns"); - strcat(buf_out, "dns&hostname="); + Best regards Christian Lackas -- http://www.lackas.net/ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302181641.h1IGf7F2002551>