Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/files/
Date: Sat, 02 Apr 2022 18:32:55
Message-Id: 1648924331.7d5d9a780a8c895439b85d03a3b6ce70f4dd08c8.williamh@gentoo
1 commit: 7d5d9a780a8c895439b85d03a3b6ce70f4dd08c8
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 18:32:11 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 18:32:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d5d9a78
7
8 sys-apps/openrc: drop unneeded patch
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 .../openrc/files/openrc-0.44.6-fix-checkpath.patch | 33 ----------------------
13 1 file changed, 33 deletions(-)
14
15 diff --git a/sys-apps/openrc/files/openrc-0.44.6-fix-checkpath.patch b/sys-apps/openrc/files/openrc-0.44.6-fix-checkpath.patch
16 deleted file mode 100644
17 index e1ef97d981dc..000000000000
18 --- a/sys-apps/openrc/files/openrc-0.44.6-fix-checkpath.patch
19 +++ /dev/null
20 @@ -1,33 +0,0 @@
21 -From cc45b55f895d0c21b5ac3e5a65b0bf00f76adeb7 Mon Sep 17 00:00:00 2001
22 -From: Sam James <sam@g.o>
23 -Date: Fri, 8 Oct 2021 04:52:55 +0100
24 -Subject: [PATCH 1/2] checkpath: fix allocation size of path buffer
25 -
26 -strlen's return value isn't enough to be used
27 -directly for (x)malloc; it doesn't include
28 -the null byte at the end of the string.
29 -
30 -X-Gentoo-Bug: 816900
31 -X-Gentoo-Bug-URL: https://bugs.gentoo.org/816900
32 -Fixes: #459
33 -Fixes: #462
34 ----
35 - src/rc/checkpath.c | 2 +-
36 - 1 file changed, 1 insertion(+), 1 deletion(-)
37 -
38 -diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
39 -index bab22692..c4dd7d9d 100644
40 ---- a/src/rc/checkpath.c
41 -+++ b/src/rc/checkpath.c
42 -@@ -151,7 +151,7 @@ static char *clean_path(char *path)
43 - char *ch;
44 - char *ch2;
45 - char *str;
46 -- str = xmalloc(strlen(path));
47 -+ str = xmalloc(strlen(path) + 1);
48 - ch = path;
49 - ch2 = str;
50 - while (true) {
51 ---
52 -2.32.0
53 -