]> code.ossystems Code Review - openembedded-core.git/commit
e2fsprogs: Fix missing check for permission denied.
authorJackie Huang <jackie.huang@windriver.com>
Wed, 10 Aug 2016 03:19:44 +0000 (11:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Sep 2016 14:25:57 +0000 (15:25 +0100)
commit49086f40c8068ed504d301ef8f56528fd813e10f
tree8cdf9db0d1df333c0b519086f48a32dd395f5df3
parente066ba81ac7aecd3d9dfa1cb5d89acb6dc073e8f
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.

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>
meta/recipes-devtools/e2fsprogs/e2fsprogs/e2fsprogs-fix-missing-check-for-permission-denied.patch [new file with mode: 0644]
meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb