diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2016-08-10 11:19:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-23 15:27:04 +0100 |
commit | c594ff73ab3823c8a233540670cc71980b39eb04 (patch) | |
tree | 4d12c7cb8921c92c10a76b53b05a687660d5b7a7 /meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb | |
parent | b9e99832b93ba18e75444c4a610870191a41ec92 (diff) | |
download | poky-c594ff73ab3823c8a233540670cc71980b39eb04.tar.gz |
e2fsprogs: Fix missing check for permission denied.
If the path to "ROOT_SYSCONFDIR /mke2fs.conf" has a permission denied problem,
then the get_dirlist() call will return EACCES. But the code in profile_init
will treat that as a fatal error and all executions will fail with:
Couldn't init profile successfully (error: 13).
But the problem should not really be visible for the target package as the path
then will be "/etc/mke2fs.conf", and it is not likely that a user have no
permission to read /etc.
(From OE-Core rev: 9d7c32a88e0670a09e5e1097ff8bca58e9a7943f)
Fixup bb for Krogoth.
(From OE-Core rev: 49086f40c8068ed504d301ef8f56528fd813e10f)
Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb | 3 |
1 files changed, 3 insertions, 0 deletions
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 | ||
13 | SRC_URI_append_class-native = " file://e2fsprogs-fix-missing-check-for-permission-denied.patch" | ||
14 | |||
13 | SRCREV = "0f26747167cc9d82df849b0aad387bf824f04544" | 15 | SRCREV = "0f26747167cc9d82df849b0aad387bf824f04544" |
14 | PV = "1.42.99+1.43+git${SRCPV}" | 16 | PV = "1.42.99+1.43+git${SRCPV}" |
17 | |||
15 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" | 18 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" |
16 | 19 | ||
17 | EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ | 20 | EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ |