rpm: fix return without value in patch
PATCH 1/2 rpm: fix return without value in patch
The error patch in rpm-check-rootpath-reasonableness.patch did a bare return from a function that should be returning an int. As this is the error path, return -1 instead.
Signed-off-by Ross Burton <[email protected]>
--- meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch +1 -1
@@ -37,7 +37,7 @@ index 40c42bd..88d85ab 100644 + int ret,rootdir_len; + + if(rootdir == NULL) { -+ return; ++ return -1; + } + + rootdir_len = strlen(rootdir);
Signature · 1 line
2.1.4
PATCH 2/2 readline: actually apply readline63-003 (aka CVE-2014-2524)
This file wasn't named as a patch, nor told to apply explicity, so it was just unpacked to the work directory and not applied. Rename the file so the patch is applied correctly.
(thanks to Petter Mabäcker <[email protected]> for spotting this)
Signed-off-by Ross Burton <[email protected]>
---
.../readline/readline-6.3/{readline63-003 => readline63-003.patch} | 0
meta/recipes-core/readline/readline_6.3.bb | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-core/readline/readline-6.3/{readline63-003 => readline63-003.patch} (100%)meta/recipes-core/readline/readline-6.3/readline63-003.patch renamed from meta/recipes-core/readline/readline-6.3/readline63-003 +0 -0
meta/recipes-core/readline/readline_6.3.bb +1 -1
@@ -1,6 +1,6 @@ require readline.inc -SRC_URI += "file://readline63-003 \ +SRC_URI += "file://readline63-003.patch;striplevel=0 \ file://readline-dispatch-multikey.patch" SRC_URI[archive.md5sum] = "33c8fb279e981274f485fd91da77e94a"
Signature · 1 line
2.1.4