summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2020-05-18 22:36:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-21 10:52:07 +0100
commit82346d35e4a879ae13678dc28ffa354ea68b2ac0 (patch)
tree25f3d4bd1a2d890e130f86b45bc6e7f8171ba9dd /meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
parentc4087787bc8daf0edbb08557f84f0cb19dab3556 (diff)
downloadpoky-82346d35e4a879ae13678dc28ffa354ea68b2ac0.tar.gz
ltp: Update to 20200515
Inherit also pkgconfig (required for TI-RPC and Netlink based route tests), to fix: configure:6045: error: possibly undefined macro: AC_DEFINE Refreshed patches (some tests have been fixed for musl) * 0001-build-Add-option-to-select-libc-implementation.patch (add a note here) * 0001-Add-more-musl-exclusions.patch Removed patches (different fix in upstream) * 0003-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch Removed patches (accepted upstream) * 0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch * 0001-syscalls-Check-for-time64-unsafe-syscalls-before-usi.patch Update upstream status * 0004-guard-mallocopt-with-__GLIBC__.patch (From OE-Core rev: b31adfccbcdf88f2a9cdca59dcb4725356d30a7f) Signed-off-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch b/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
deleted file mode 100644
index 350091a70c..0000000000
--- a/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 4b7db094d6fc5659001ae8dc17078bb65d46b9c9 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com>
3Date: Fri, 13 May 2016 11:11:28 -0500
4Subject: [PATCH] acl: Security fix on string printf
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Fixes build error when compiled with -Werror=format-security:
10
11acl1.c: In function ‘test_acl_default’:
12acl1.c:305:2: error: format not a string literal and no format arguments [-Werror=format-security]
13 305 | printf(cmd);
14
15Patch taken from openembedded-core,
16original bug report: https://bugzilla.yoctoproject.org/9548
17
18[YOCTO #9548]
19
20Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
21Signed-off-by: Petr Vorel <pvorel@suse.cz>
22Upstream-Status: accepted in 4b7db094d6fc5659001ae8dc17078bb65d46b9c9
23---
24 testcases/network/nfsv4/acl/acl1.c | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27diff --git a/testcases/network/nfsv4/acl/acl1.c b/testcases/network/nfsv4/acl/acl1.c
28index aae9484e5..ad778cd33 100644
29--- a/testcases/network/nfsv4/acl/acl1.c
30+++ b/testcases/network/nfsv4/acl/acl1.c
31@@ -302,7 +302,7 @@ void test_acl_default(char *dir, acl_t acl)
32 char *cmd = malloc(256);
33
34 strcpy(cmd, "chmod 7777 ");
35- printf(cmd);
36+ printf(cmd, NULL);
37 strcat(cmd, dir);
38 system(cmd);
39 acl2 = acl_get_file(path, ACL_TYPE_ACCESS);
40--
412.25.1
42