diff options
Diffstat (limited to 'meta/recipes-devtools/pseudo/files')
-rw-r--r-- | meta/recipes-devtools/pseudo/files/pseudo-1.5.1-install-directory-mode.patch | 18 |
1 files changed, 18 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 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | when install command sets the created directory mode, pseudo will change | ||
4 | the mode of the directory to 0700 incorrectly. | ||
5 | |||
6 | Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com> | ||
7 | Signed-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", | ||