summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch32
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb3
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch b/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch
new file mode 100644
index 0000000000..33054c61fa
--- /dev/null
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch
@@ -0,0 +1,32 @@
1Subject: [PATCH] Fix missing check for permission denied.
2
3If the path to "ROOT_SYSCONFDIR/mke2fs.conf" has a permission denied problem,
4then the get_dirlist() call will return EACCES. But the code in profile_init
5will treat that as a fatal error and all executions will fail with:
6 Couldn't init profile successfully (error: 13).
7
8Upstream-Status: Pending
9
10Written-by: Henrik Wallin <henrik.b.wallin@ericsson.com>
11
12Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13---
14 lib/support/profile.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/lib/support/profile.c b/lib/support/profile.c
18index 51a3314..1c1039f 100644
19--- a/lib/support/profile.c
20+++ b/lib/support/profile.c
21@@ -335,7 +335,7 @@ profile_init(const char **files, profile_t *ret_profile)
22 *last = new_file;
23 last = &new_file->next;
24 }
25- } else if ((retval != ENOTDIR) &&
26+ } else if ((retval != ENOTDIR) && (retval != EACCES) &&
27 strcmp(*fs, default_filename))
28 goto errout;
29
30--
312.7.4
32
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
index 9cde8e46b7..e372074bd7 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
@@ -10,8 +10,11 @@ SRC_URI += "file://acinclude.m4 \
10 file://Revert-mke2fs-enable-the-metadata_csum-and-64bit-fea.patch \ 10 file://Revert-mke2fs-enable-the-metadata_csum-and-64bit-fea.patch \
11" 11"
12 12
13SRC_URI_append_class-native = " file://e2fsprogs-fix-missing-check-for-permission-denied.patch"
14
13SRCREV = "0f26747167cc9d82df849b0aad387bf824f04544" 15SRCREV = "0f26747167cc9d82df849b0aad387bf824f04544"
14PV = "1.42.99+1.43+git${SRCPV}" 16PV = "1.42.99+1.43+git${SRCPV}"
17
15UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" 18UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$"
16 19
17EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ 20EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \