From patchwork Mon Jul 22 00:24:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1134630 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZjuKsVGG"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45sMml3PHzz9s4Y for ; Mon, 22 Jul 2019 10:24:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 84EA88272B; Mon, 22 Jul 2019 00:24:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xBXzLN+3n13m; Mon, 22 Jul 2019 00:24:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8BBE5816E6; Mon, 22 Jul 2019 00:24:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id AEC6E1BF865 for ; Mon, 22 Jul 2019 00:24:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AA55585F8A for ; Mon, 22 Jul 2019 00:24:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2oBO1piMGrzk for ; Mon, 22 Jul 2019 00:24:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by fraxinus.osuosl.org (Postfix) with ESMTPS id EA1A685F43 for ; Mon, 22 Jul 2019 00:24:17 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id a15so36785524qtn.7 for ; Sun, 21 Jul 2019 17:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jo+c6s8UmEthbd4G2rIoJ1G0jdSRKiwYMtchPFZ3iKc=; b=ZjuKsVGGHlqAE3uoCAsjmnnlgGSapdjzuzIhI14G3FzNNzNwzCmtZi+0fYu9ekPZfc tZXlypaZNOtFvCo8taelGA3/3Fi3k3NiS9FF7RI7qX/Ul5siHgEaI5/6ZtTK+roas/K0 VR3SMxdrr/NFkAYNhjJl2+AUMsv8pQD998wgR+ibnUHT020rpowv+2wrRBIBCyP/ktyX mr1LH8Q0NhCxbfj7FVL5iWeOUJ2q8/LjuweB5WRawy4EvgAXn/GAJ19O1tYRibFYZ+kn L3lrn60cM595N5BubBQ3Z//t+YU7WJG9WAPJA8LyUabesKodwnzqXnzLMEDrhweHClAx lVPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jo+c6s8UmEthbd4G2rIoJ1G0jdSRKiwYMtchPFZ3iKc=; b=C8t6bGRUbcvebbU/dlZWpoRKB/joOgxXebg0RNJlvH9cB6z76YHBs4Zq3cS8HGC3Q2 /2aTlkER0yNI+i+hr/jCBAoF/yaNp+VgaW56EYO8rup01lBUCeVuf+H+ROIDdyY3I9ys 3ABZUx3RzZ6Ze3AkWKMfYDoUJVzQQe+P3ebvUOORlMkpSr5uXfr6xoDK3pRyIWZdP/MV Lur0RCCb03thMB8ouEmhyCriUeu1KlByZy4CgEv9VlRwJtRDJ3+IZ0gcOqKpu6sOl80m YnMnSc8Wf5SORNaT0cBV+55Z47jCLVO4k89qvepDPsxItc1pwaTRdySXCqIq12IEN9mZ Btvg== X-Gm-Message-State: APjAAAW0hN5XIIWJCUUt69yIgmG3NwCBUbsWxHS/6VCY/6pR52ZCuXjZ Cpw4qoNNxnOl5wb0E0cglny+nbeq X-Google-Smtp-Source: APXvYqyeRGgyv8XlA7y3gtPDro1hhZeLl//d0YMoYrIUzntYp981qTct1uq+joYbI+avL/yFTQsxjg== X-Received: by 2002:ac8:29e6:: with SMTP id 35mr48570276qtt.116.1563755056664; Sun, 21 Jul 2019 17:24:16 -0700 (PDT) Received: from casantos.remote.csb ([191.35.195.92]) by smtp.gmail.com with ESMTPSA id n93sm18356798qte.1.2019.07.21.17.24.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 21 Jul 2019 17:24:16 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Sun, 21 Jul 2019 21:24:10 -0300 Message-Id: <20190722002410.6707-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH v2] package/dcron: add patch to fix error message X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos The error message issued when the creation of the log file fails lacks an ending newline. Add a patch already submitted upstream[1] to fix it. 1. https://github.com/dubiousjim/dcron/pull/22 Signed-off-by: Carlos Santos --- Changes v1->v2: - Add SOB --- ...ne-to-logfile-openning-error-message.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch diff --git a/package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch b/package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch new file mode 100644 index 0000000000..c838063e03 --- /dev/null +++ b/package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch @@ -0,0 +1,26 @@ +From 2710bc67cd920323da9b23a3d60193577bd43d71 Mon Sep 17 00:00:00 2001 +From: Carlos Santos +Date: Sat, 20 Jul 2019 00:27:31 -0300 +Subject: [PATCH] main.c: add newline to logfile openning error message + +Signed-off-by: Carlos Santos +--- + main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/main.c b/main.c +index 0eba280..2606db8 100644 +--- a/main.c ++++ b/main.c +@@ -261,7 +261,7 @@ main(int ac, char **av) + dup2(fd, 2); + } else { + int n = errno; +- fdprintf(2, "failed to open logfile '%s', reason: %s", LogFile, strerror(n)); ++ fdprintf(2, "failed to open logfile '%s', reason: %s\n", LogFile, strerror(n)); + exit(n); + } + } +-- +2.18.1 +