From patchwork Sat Oct 23 19:16:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 4822 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Hc9v1070gz3wcs for ; Sat, 23 Oct 2021 19:16:44 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Hc9tz65qrz1T4; Sat, 23 Oct 2021 19:16:43 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Hc9tz4mmRz2yDF; Sat, 23 Oct 2021 19:16:43 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Hc9ty2PLbz2xbv for ; Sat, 23 Oct 2021 19:16:42 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Hc9tx4gjfz14T; Sat, 23 Oct 2021 19:16:41 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1635016601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=80lUxNbeYtSxDBxzntad4LJJjqXt9X++ZttfGQLiZ3A=; b=7CRB3NwNlOCaHtxOCN9QeaQTB2u0L+NAWCFZJjnnGnxFLsNiz9dGf10EFG8fw23iWAiyf6 TXZQa05I7aOgfpDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1635016601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=80lUxNbeYtSxDBxzntad4LJJjqXt9X++ZttfGQLiZ3A=; b=lHIA6J0cmZJXWYTlNZ38jySn/LvP/Rtxka1Zpyvv6CdAcDZGDGkmApU7fjOobvHK9g9Nzj vJNYYV2LWDhc4wNxKgBTKiuMSE8yVGAUz//ZgnTFrbdalqx2emz9fngmhsOau9yjDHy8UL gIwI1tP2JNO2pDvDM57imhBMJkW8qxhIjhnULw1lw9TKXhRK+AEJVGCKapFbuzRf8bIRo9 2Ku3xIhHKTsFr2r2W/5hhAk3hxicWPK1k+/0LK7XJKodPDJYLHhLNeKNCoKLGTD5PonS6h 3esig3vOx77Oh1YnrsmGj/b1jAH6wyXbaZz2PQW8swPk6KTQ+T0E9KVbPnCtRg== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] ddns: Add upstream patch to fix a typo for FreeDNSAfraid.org provider Date: Sat, 23 Oct 2021 21:16:25 +0200 Message-Id: <20211023191625.3014-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl Reported-by: Bernhard Bitsch Reviewed-by: Bernhard Bitsch Tested-by: Bernhard Bitsch --- lfs/ddns | 2 +- .../ddns-014-freednsafraid-fix-typo.patch | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/patches/ddns-014-freednsafraid-fix-typo.patch diff --git a/lfs/ddns b/lfs/ddns index b1d0f2dbb..873f927af 100644 --- a/lfs/ddns +++ b/lfs/ddns @@ -72,7 +72,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) # Apply upstream patches. - # No upstream patches at the moment. + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-014-freednsafraid-fix-typo.patch cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh cd $(DIR_APP) && ./configure \ diff --git a/src/patches/ddns-014-freednsafraid-fix-typo.patch b/src/patches/ddns-014-freednsafraid-fix-typo.patch new file mode 100644 index 000000000..4982d52f4 --- /dev/null +++ b/src/patches/ddns-014-freednsafraid-fix-typo.patch @@ -0,0 +1,21 @@ +commit 3a162595b9b44a4cbf08a3db14a4d2ebfeeb5583 +Author: Stefan Schantl +Date: Sat Oct 23 21:11:27 2021 +0200 + + FreeDNSAfraid.org: Fix typo in checking if the IP has been changed. + + Signed-off-by: Stefan Schantl + +diff --git a/src/ddns/providers.py b/src/ddns/providers.py +index 4f27af9..5b2a82d 100644 +--- a/src/ddns/providers.py ++++ b/src/ddns/providers.py +@@ -1204,7 +1204,7 @@ class DDNSProviderFreeDNSAfraidOrg(DDNSProvider): + output = response.read().decode() + + # Handle success messages. +- if output.startswith("Updated") or output.startswith("No IP changed detected"): ++ if output.startswith("Updated") or output.startswith("No IP change detected"): + return + + # Handle error codes.