From patchwork Wed Dec 30 11:57:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1421345 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13c; helo=mail-lf1-x13c.google.com; envelope-from=swupdate+bncbcxploxj6ikrbi6wwh7qkgqebky5v5y@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=MQKXtep/; dkim-atps=neutral Received: from mail-lf1-x13c.google.com (mail-lf1-x13c.google.com [IPv6:2a00:1450:4864:20::13c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D5VCD4pT7z9sVb for ; Wed, 30 Dec 2020 22:57:27 +1100 (AEDT) Received: by mail-lf1-x13c.google.com with SMTP id 140sf10221338lfm.23 for ; Wed, 30 Dec 2020 03:57:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609329443; cv=pass; d=google.com; s=arc-20160816; b=vJkme6CP9cUbbtHy8nddVdke+5z1KA+QvaYMsdLa5XoUtCNJAq1jJtkDHgf+QFPkev NguY5y5YwP2R4yp+m6ATBrkN/JQeHv2b+ChutaTMuesbwN/znXa7BlHK+n26zQ6lPDuq sYN+g9mxsquEL2N08PlvGTpd6gq4Mukp5bi9uO/vCWPHJ9V4zVEJmBwX+wpm8dKXBALY oYwOeW9izFqqboWAs91mAGQRcPTQAVYLFqUk4NdyXSCpRD/kOc40LFaYC3KoArxjgHji v1BUPVM/f58W9UjgCfplI+N+vSUXWxGTyz1JHi0B/NiE5WpoOVVhbbOTIPC+ltR4rRqN vD2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=sNE5Z/RCODU9evD8NhewciOuzzWWadhjoBoYthqRH+E=; b=aiUgZFBK0L629YbNneJPM3+VFiRsY7s2r2rtLVa26sfio8+bnV+QpcBIFGIcRTs2Zh gHHkdYH9mlPllGAierwNpRH7doYyLNsNnU/QizrTsWW3HiU+MXlm8Njd7oWbFYIsi99J dUnd/4d73e0IpViwlrc+Ps9lOHsAXDQoe7HGwlKOUVvCA8wbHqJKYFGleZ/W+e89BQVq RwoMIXCIGd6AQEfpAJh60Tu2cfr/7vektmJv+hjdVBx54jjL5SD5Pi3Ssv9d2ma0H79W CoLDafn830Qd4HDxlL3yuaao3zyPI0Ps9kKWYWiYSKUDUM75uNCe7jryN43/v0rREgyc UzhQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=sNE5Z/RCODU9evD8NhewciOuzzWWadhjoBoYthqRH+E=; b=MQKXtep/qqX+gzMKaZ3dtV02Bza355O8Mw1NucuuOIlUkELGPH/htRTSuBOl8Jma8q U41FyUzXRxC8/hWO6Re6gEMQPMr15ykej+MonNqlz6B1yvSYEE27cbTx/m7oLP03IXdh QedaxeGp7L1gyFKcN+XSQk+XcFpfFsaP+D6SOhnyy6UouTDibdemGvdBWA5Enpz6Fk8h pZoXrtjVxxkXEn8zUbGzTPGKs/l6KLvQvmqjG781M7GcaPWwTBy6Gm6gSMbaZuC1p2Lo DODRQNpU46gf9FdPQURK339FbH1t/jyAjNXUujqFHUchyTj91CNUDtSYmxjcNX+RyuRS yc3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=sNE5Z/RCODU9evD8NhewciOuzzWWadhjoBoYthqRH+E=; b=srh6qMJ7kwZR/FUPjSdvvq8yoB1Dshv9/S3b43dPOvxi5rMivz+JNk6RbZgpuH91sn sUMhpKGHh8fBJlU7u5EIM94Yvi+yy+Ol1JsJNBa+pRDzy5+aRH0G+K/t29QIvIXP+5vw nzzK4Da6hoF/CFjiysI402TnRjsNOdIWqpnRcnK+2777x2YEwyrxd/mPl1dB2DbGtuti xhpfEpRrxQtEF70oj47PC7ydhHhBGpQqKMUc0M8isOHEkvKk8UWZE1Sz/XJaaTrKS9H3 ADZUA7Ukhs0GdOaiBTtAgqwzu2y/6uiUYdxjDMxu32wkASekl2xTnM2jq3vI6dteM8O3 lbfQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5330gDTUPMKg52PKk/xFrR1hBp1RI8+W5xhdlPkb6YxtwCSDkel2 rJ3Dfm/A5F0OfqhXrnZpIwo= X-Google-Smtp-Source: ABdhPJzEaXWA+ICDgv+ky+ExJjgu8qh2ogtIUjJElr+EUp2s3bTGB5yPswtuQvFVh7NihezqnOdTHg== X-Received: by 2002:a2e:2f17:: with SMTP id v23mr25505548ljv.222.1609329443670; Wed, 30 Dec 2020 03:57:23 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:c886:: with SMTP id y128ls2167420lff.0.gmail; Wed, 30 Dec 2020 03:57:22 -0800 (PST) X-Received: by 2002:ac2:5e87:: with SMTP id b7mr21554107lfq.190.1609329442395; Wed, 30 Dec 2020 03:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609329442; cv=none; d=google.com; s=arc-20160816; b=l4odCUV6zsbetQatIEqU17OOEksuCDQEdyKG1iKoatqu/CAsfmjzynip+jPWpvcgqR TMnJE85Yr2w7nEWqCRiqDVv+hO5mbuKuz1nPNuSRgtZ8/Z/yaGbcaoegNU2D++jDIRLv YI4Dnfb478lRkgqt0t5XLvqmfdUwFOnocqAMYs5ubUyyezM+6qwI5jKFw/1ayUYJaAh1 286OQO4UuPeF4VRhinGISh/u5Ox9Y8Kl5pejoeri97sin9r7hNSIcuLjohgwA2f+arR8 UVZYEy4A2Vt151qGah0L5b6p5cTKK4tQ0W2TdXAX0anO4W40oXbramNDamD9J5pQBRFq aceg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=4tmDUvwzGycCVvoTYF+vaYlpgNCPNkgPwmKsRQDNo+w=; b=qd30KnFP1e8dDlSzkqySYTpFd/obXysddOplyCLf6zV7kqOK404g5rTsAAykcWg7kk YAEPkYjY+jTLWJ4CvP4xhYi0m3fDgrXu/+lkZmK1paEaWotHraYaQ2yJ7LPI5K8/S56g 8Bw5pIxNB1Jx7fjf7jL5dftdYLSVzgC+Sa0bmqR2ryOznXm26VqNZROS+Og1961r71h2 UfvGPyKfrHTgovz0diqSOg41/nKPW5He4DzQWDIFJ4LxtKlNxV7G96X+PG6fDxN6Vg+l /ctiJDqJ8iCRdR1SM1kCwq2qL3tyd8GaOABT2/eYbipj/99WXvC4aGBk91lL5l7fXJrN jwew== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id 7si1069208lfp.13.2020.12.30.03.57.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Dec 2020 03:57:22 -0800 (PST) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4D5VC54BZNz1rvm9; Wed, 30 Dec 2020 12:57:21 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4D5VC53tH8z1qqkp; Wed, 30 Dec 2020 12:57:21 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id y0PS1SKFjq9A; Wed, 30 Dec 2020 12:57:20 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 30 Dec 2020 12:57:20 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 7DBCE454082B; Wed, 30 Dec 2020 12:57:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BFW0atRcv36D; Wed, 30 Dec 2020 12:57:17 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id D79DC454022E; Wed, 30 Dec 2020 12:57:16 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic , Bastian Germann Subject: [swupdate] [PATCH] Added missing copyright for strlcpy function Date: Wed, 30 Dec 2020 12:57:14 +0100 Message-Id: <20201230115714.156972-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , strlcpy() does not exist in Linux and the function in SWUpdate was taken from FreeBSD code. Add the missing Copyright of the author. Signed-off-by: Stefano Babic Reported-by: Bastian Germann --- core/util.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/util.c b/core/util.c index 69d02c5..466507d 100644 --- a/core/util.c +++ b/core/util.c @@ -225,6 +225,12 @@ char *substring(const char *src, int first, int len) { #if defined(__linux__) +/* + * strlcpy() does not exist in Linux, and this function is copied from freebsd + * + * Copyright (c) 1998, 2015 Todd C. Miller + */ + /* * Copy string src to buffer dst of size dsize. At most dsize-1 * chars will be copied. Always NUL terminates (unless dsize == 0).