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:
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