mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
15056e2aef
commit
79dc4f0158
@@ -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 <yanjun.zhu@windriver.com>
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
|
||||
--- 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",
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user