diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-05-13 14:49:26 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-15 09:06:00 +0100 |
commit | 65238546b7c069540b64903d5c3afbaa332bfbff (patch) | |
tree | ed01859a4e6a7591d8f661eefe11363db7008253 | |
parent | eecba7171dc18fd1015d29a4de0c5a6669bf1d70 (diff) | |
download | poky-65238546b7c069540b64903d5c3afbaa332bfbff.tar.gz |
libuser: Fix security string formatting issues.
[YOCTO #9547]
(From OE-Core rev: c3f5a05f8d482608be964d200938ae3ed745fe09)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch | 34 | ||||
-rw-r--r-- | meta/recipes-extended/libuser/libuser_0.62.bb | 3 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch b/meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch new file mode 100644 index 0000000000..074491bcb2 --- /dev/null +++ b/meta/recipes-extended/libuser/libuser/0001-modules-files.c-parse_field-fix-string-formating-in-.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From a4857911ece5ebfcdef42aee4c070eb216f39597 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com> | ||
3 | Date: Fri, 13 May 2016 11:40:13 -0500 | ||
4 | Subject: [PATCH] modules/files.c: parse_field fix string formating in | ||
5 | g_warnings | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | [YOCTO #9547] | ||
11 | |||
12 | Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> | ||
13 | |||
14 | Upstream-status: Pending | ||
15 | --- | ||
16 | modules/files.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/modules/files.c b/modules/files.c | ||
20 | index 4ef0a57..35eafc9 100644 | ||
21 | --- a/modules/files.c | ||
22 | +++ b/modules/files.c | ||
23 | @@ -534,7 +534,7 @@ parse_field(const struct format_specifier *format, GValue *value, | ||
24 | string, &err); | ||
25 | if (ret == FALSE) { | ||
26 | g_assert(err != NULL); | ||
27 | - g_warning(lu_strerror(err)); | ||
28 | + g_warning(lu_strerror(err), NULL); | ||
29 | lu_error_free(&err); | ||
30 | } | ||
31 | return ret; | ||
32 | -- | ||
33 | 2.1.4 | ||
34 | |||
diff --git a/meta/recipes-extended/libuser/libuser_0.62.bb b/meta/recipes-extended/libuser/libuser_0.62.bb index 1369ae8f2d..7a64efe558 100644 --- a/meta/recipes-extended/libuser/libuser_0.62.bb +++ b/meta/recipes-extended/libuser/libuser_0.62.bb | |||
@@ -14,7 +14,8 @@ SECTION = "base" | |||
14 | SRC_URI = "https://fedorahosted.org/releases/l/i/libuser/libuser-${PV}.tar.xz \ | 14 | SRC_URI = "https://fedorahosted.org/releases/l/i/libuser/libuser-${PV}.tar.xz \ |
15 | file://0001-Check-for-issetugid.patch \ | 15 | file://0001-Check-for-issetugid.patch \ |
16 | file://0002-remove-unused-execinfo.h.patch \ | 16 | file://0002-remove-unused-execinfo.h.patch \ |
17 | " | 17 | file://0001-modules-files.c-parse_field-fix-string-formating-in-.patch \ |
18 | " | ||
18 | 19 | ||
19 | SRC_URI[md5sum] = "63e5e5c551e99dc5302b40b80bd6d4f2" | 20 | SRC_URI[md5sum] = "63e5e5c551e99dc5302b40b80bd6d4f2" |
20 | SRC_URI[sha256sum] = "a58ff4fabb01a25043b142185a33eeea961109dd60d4b40b6a9df4fa3cace20b" | 21 | SRC_URI[sha256sum] = "a58ff4fabb01a25043b142185a33eeea961109dd60d4b40b6a9df4fa3cace20b" |