aboutsummaryrefslogtreecommitdiffstats
path: root/ports/darwin
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2015-09-03 18:12:27 -0500
committerPeter Seebach <peter.seebach@windriver.com>2015-09-03 18:12:27 -0500
commit0b3080ba90d58249c853f1ddd1a24c54f383a31f (patch)
tree580a737a60ddef6644936c9fcd7327a6bc3638df /ports/darwin
parenta49c56fbf1fdff5a3050d30b47851c52b4e35fc2 (diff)
downloadpseudo-0b3080ba90d58249c853f1ddd1a24c54f383a31f.tar.gz
pseudo-0b3080ba90d58249c853f1ddd1a24c54f383a31f.tar.bz2
pseudo-0b3080ba90d58249c853f1ddd1a24c54f383a31f.zip
Finish (I hope) working around 0700 umasks.
There's some changes to allow things to work even if umask is 0700; originally this was just regarded as a broken state, but it became necessary to fix it in order for the xattrdb code to work, only the fix could result in files having a raw filesystem mode that lacked execute bits it should have had. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'ports/darwin')
-rw-r--r--ports/darwin/guts/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/darwin/guts/open.c b/ports/darwin/guts/open.c
index 0979c54..f34b0d3 100644
--- a/ports/darwin/guts/open.c
+++ b/ports/darwin/guts/open.c
@@ -41,7 +41,7 @@
if (stat_rc != -1) {
buf.st_mode = PSEUDO_DB_MODE(buf.st_mode, mode);
if (!existed) {
- real_fchmod(rc, PSEUDO_FS_MODE(0600, 0));
+ real_fchmod(rc, PSEUDO_FS_MODE(mode, 0));
pseudo_client_op(OP_CREAT, 0, -1, -1, path, &buf);
}
pseudo_client_op(OP_OPEN, PSEUDO_ACCESS(flags), rc, -1, path, &buf);