summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryanjun.zhu <yanjun.zhu@windriver.com>2014-03-31 22:41:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-31 22:53:45 +0100
commit79dc4f01585421cc6e8d0660b9caa9bf5e259b72 (patch)
treea483f8a89f8aa1b62e3beb8fe183daa5ddb9e199
parent15056e2aefeda6836127e1d369b04002c2b660de (diff)
downloadpoky-79dc4f01585421cc6e8d0660b9caa9bf5e259b72.tar.gz
pseudo-1.5.1: keep install command directory mode
When install command sets the created directory mode, pseudo will change the mode of the directory to 0700 incorrectly. Backport patch to fix it. (From OE-Core rev: af595b09d570cbd320e4e138651144ac96bfbb83) Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch18
-rw-r--r--meta/recipes-devtools/pseudo/pseudo_1.5.1.bb1
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch b/meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch
new file mode 100644
index 0000000000..e8eaf13f74
--- /dev/null
+++ b/meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch
@@ -0,0 +1,18 @@
1Upstream-Status: Backport
2
3when install command sets the created directory mode, pseudo will change
4the mode of the directory to 0700 incorrectly.
5
6Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
7Signed-off-by: Kai Kang <kai.kang@windriver.com>
8
9--- a/ports/unix/guts/mkdirat.c
10+++ b/ports/unix/guts/mkdirat.c
11@@ -25,6 +25,7 @@
12 stat_rc = base_fstatat(dirfd, path, &buf, AT_SYMLINK_NOFOLLOW);
13 #endif
14 if (stat_rc != -1) {
15+ buf.st_mode = PSEUDO_DB_MODE(buf.st_mode, mode);
16 pseudo_client_op(OP_MKDIR, 0, -1, dirfd, path, &buf);
17 } else {
18 pseudo_debug(1, "mkdir of %s succeeded, but stat failed: %s\n",
diff --git a/meta/recipes-devtools/pseudo/pseudo_1.5.1.bb b/meta/recipes-devtools/pseudo/pseudo_1.5.1.bb
index bc928569df..215cdb8bcc 100644
--- a/meta/recipes-devtools/pseudo/pseudo_1.5.1.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_1.5.1.bb
@@ -6,6 +6,7 @@ SRC_URI = " \
6 http://www.yoctoproject.org/downloads/${BPN}/${BPN}-${PV}.tar.bz2 \ 6 http://www.yoctoproject.org/downloads/${BPN}/${BPN}-${PV}.tar.bz2 \
7 file://0001-pseudo_has_unload-add-function.patch \ 7 file://0001-pseudo_has_unload-add-function.patch \
8 file://shutdownping.patch \ 8 file://shutdownping.patch \
9 file://pseudo-1.5.1-install-directory-mode.patch \
9" 10"
10 11
11SRC_URI[md5sum] = "5ec67c7bff5fe68c56de500859c19172" 12SRC_URI[md5sum] = "5ec67c7bff5fe68c56de500859c19172"