Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Thu, 22 Feb 2018 00:17:32
Message-Id: 1519258616.5868abe97babcc287794dcb36ad8e77989b6ddcf.williamh@OpenRC
1 commit: 5868abe97babcc287794dcb36ad8e77989b6ddcf
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 22 00:16:56 2018 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 22 00:16:56 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=5868abe9
7
8 start-stop-daemon: compiler warning cleanup
9
10 src/rc/start-stop-daemon.c | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13 diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
14 index 88b1e091..1b565829 100644
15 --- a/src/rc/start-stop-daemon.c
16 +++ b/src/rc/start-stop-daemon.c
17 @@ -616,7 +616,8 @@ int main(int argc, char **argv)
18 fp = fopen(exec_file, "r");
19 if (fp) {
20 line = NULL;
21 - getline(&line, &size, fp);
22 + if (getline(&line, &size, fp) == -1)
23 + eerrorx("%s: %s", applet, strerror(errno));
24 p = line;
25 fclose(fp);
26 if (p != NULL && line[0] == '#' && line[1] == '!') {