summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch')
-rw-r--r--meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch b/meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch
index 4fa3d184ed..9825216369 100644
--- a/meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch
+++ b/meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch
@@ -1,3 +1,8 @@
1From 66533c7c6f347d257020675a1ed6e0c59cbbc3f0 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Thu, 17 Jul 2014 15:53:34 +0800
4Subject: [PATCH] commonio.c-fix-unexpected-open-failure-in-chroot-env
5
1Upstream-Status: Inappropriate [OE specific] 6Upstream-Status: Inappropriate [OE specific]
2 7
3commonio.c: fix unexpected open failure in chroot environment 8commonio.c: fix unexpected open failure in chroot environment
@@ -10,15 +15,16 @@ Note that this patch doesn't change the logic in the code, it just expands
10the codes. 15the codes.
11 16
12Signed-off-by: Chen Qi <Qi.Chen@windriver.com> 17Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
18
13--- 19---
14 lib/commonio.c | 16 ++++++++++++---- 20 lib/commonio.c | 16 ++++++++++++----
15 1 file changed, 12 insertions(+), 4 deletions(-) 21 1 file changed, 12 insertions(+), 4 deletions(-)
16 22
17diff --git a/lib/commonio.c b/lib/commonio.c 23diff --git a/lib/commonio.c b/lib/commonio.c
18index cc536bf..51cafd9 100644 24index 16fa7e7..d6bc297 100644
19--- a/lib/commonio.c 25--- a/lib/commonio.c
20+++ b/lib/commonio.c 26+++ b/lib/commonio.c
21@@ -613,10 +613,18 @@ int commonio_open (struct commonio_db *db, int mode) 27@@ -632,10 +632,18 @@ int commonio_open (struct commonio_db *db, int mode)
22 db->cursor = NULL; 28 db->cursor = NULL;
23 db->changed = false; 29 db->changed = false;
24 30
@@ -41,6 +47,3 @@ index cc536bf..51cafd9 100644
41 db->fp = NULL; 47 db->fp = NULL;
42 if (fd >= 0) { 48 if (fd >= 0) {
43 #ifdef WITH_TCB 49 #ifdef WITH_TCB
44--
451.7.9.5
46