diff options
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.patch | 42 |
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 @@ | |||
1 | From 4b7db094d6fc5659001ae8dc17078bb65d46b9c9 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:11:28 -0500 | ||
4 | Subject: [PATCH] acl: Security fix on string printf | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Fixes build error when compiled with -Werror=format-security: | ||
10 | |||
11 | acl1.c: In function ‘test_acl_default’: | ||
12 | acl1.c:305:2: error: format not a string literal and no format arguments [-Werror=format-security] | ||
13 | 305 | printf(cmd); | ||
14 | |||
15 | Patch taken from openembedded-core, | ||
16 | original bug report: https://bugzilla.yoctoproject.org/9548 | ||
17 | |||
18 | [YOCTO #9548] | ||
19 | |||
20 | Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> | ||
21 | Signed-off-by: Petr Vorel <pvorel@suse.cz> | ||
22 | Upstream-Status: accepted in 4b7db094d6fc5659001ae8dc17078bb65d46b9c9 | ||
23 | --- | ||
24 | testcases/network/nfsv4/acl/acl1.c | 2 +- | ||
25 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
26 | |||
27 | diff --git a/testcases/network/nfsv4/acl/acl1.c b/testcases/network/nfsv4/acl/acl1.c | ||
28 | index 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 | -- | ||
41 | 2.25.1 | ||
42 | |||