From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F388E1382C5 for ; Thu, 22 Feb 2018 00:17:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24B71E0814; Thu, 22 Feb 2018 00:17:32 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2B1DE0814 for ; Thu, 22 Feb 2018 00:17:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8FF36335C31 for ; Thu, 22 Feb 2018 00:17:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C415F233 for ; Thu, 22 Feb 2018 00:17:25 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1519258616.5868abe97babcc287794dcb36ad8e77989b6ddcf.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/start-stop-daemon.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 5868abe97babcc287794dcb36ad8e77989b6ddcf X-VCS-Branch: master Date: Thu, 22 Feb 2018 00:17:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 32e8673e-6e4a-4505-95a9-2c6a0797dae0 X-Archives-Hash: 18d6177c5b982908f9f16e1dc2d2504d commit: 5868abe97babcc287794dcb36ad8e77989b6ddcf Author: William Hubbs gmail com> AuthorDate: Thu Feb 22 00:16:56 2018 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Feb 22 00:16:56 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5868abe9 start-stop-daemon: compiler warning cleanup src/rc/start-stop-daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 88b1e091..1b565829 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -616,7 +616,8 @@ int main(int argc, char **argv) fp = fopen(exec_file, "r"); if (fp) { line = NULL; - getline(&line, &size, fp); + if (getline(&line, &size, fp) == -1) + eerrorx("%s: %s", applet, strerror(errno)); p = line; fclose(fp); if (p != NULL && line[0] == '#' && line[1] == '!') {