Skip to contentSkip to conversation

V2: pseudo-1.5.1: keep install command directory mode

PATCH New Kai Kang 1 participant 2 messages Mar 31, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

PATCH 1/1 V2: pseudo-1.5.1: keep install command directory mode

V2:
* keep PR

yanjun.zhu (1):
pseudo-1.5.1: keep install command directory mode

 .../files/pseudo-1.5.1-install-directory-mode.patch    | 18 ++++++++++++++++++
 meta/recipes-devtools/pseudo/pseudo_1.5.1.bb           |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch
Signature · 1 line
1.8.1.2
author
#1 lore raw

PATCH 1/1 pseudo-1.5.1: keep install command directory mode

From: "yanjun.zhu" <[email protected]>

When install command sets the created directory mode, pseudo will change the mode of the directory to 0700 incorrectly. Backport patch to fix it.

---
 .../files/pseudo-1.5.1-install-directory-mode.patch    | 18 ++++++++++++++++++
 meta/recipes-devtools/pseudo/pseudo_1.5.1.bb           |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch
meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch new file +18 -0
new file mode 100644
index 0000000..e8eaf13
@@ -0,0 +1,18 @@
+Upstream-Status: Backport
+
+when install command sets the created directory mode, pseudo will change
+the mode of the directory to 0700 incorrectly.
+
+Signed-off-by: yanjun.zhu <[email protected]>
+Signed-off-by: Kai Kang <[email protected]>
+
+--- a/ports/unix/guts/mkdirat.c
++++ b/ports/unix/guts/mkdirat.c
+@@ -25,6 +25,7 @@
+ 		stat_rc = base_fstatat(dirfd, path, &buf, AT_SYMLINK_NOFOLLOW);
+ #endif
+ 		if (stat_rc != -1) {
++			buf.st_mode = PSEUDO_DB_MODE(buf.st_mode, mode);
+ 			pseudo_client_op(OP_MKDIR, 0, -1, dirfd, path, &buf);
+ 		} else {
+ 			pseudo_debug(1, "mkdir of %s succeeded, but stat failed: %s\n",
meta/recipes-devtools/pseudo/pseudo_1.5.1.bb +1 -0
index bc92856..215cdb8 100644
@@ -6,6 +6,7 @@ SRC_URI = " \
     http://www.yoctoproject.org/downloads/${BPN}/${BPN}-${PV}.tar.bz2 \
     file://0001-pseudo_has_unload-add-function.patch \
     file://shutdownping.patch \
+    file://pseudo-1.5.1-install-directory-mode.patch \
 "
 
 SRC_URI[md5sum] = "5ec67c7bff5fe68c56de500859c19172"
Signature · 1 line
1.8.1.2