diff -ruNabi fuse4x-0.9.1/lib/fuse.c /Users/mklatt/fuse4x-0.9.1/lib/fuse.c
old
|
new
|
|
1537 | 1537 | if (fs->op.create) { |
1538 | 1538 | int err; |
1539 | 1539 | |
| 1540 | fuse_get_context()->umask &= ~0700; |
| 1541 | |
1540 | 1542 | if (fs->debug) |
1541 | 1543 | fprintf(stderr, |
1542 | 1544 | "create flags: 0x%x %s 0%o umask=0%03o\n", |
… |
… |
|
1688 | 1690 | dev_t rdev) |
1689 | 1691 | { |
1690 | 1692 | fuse_get_context()->private_data = fs->user_data; |
| 1693 | |
| 1694 | fuse_get_context()->umask &= ~0700; |
| 1695 | |
1691 | 1696 | if (fs->op.mknod) { |
1692 | 1697 | if (fs->debug) |
1693 | 1698 | fprintf(stderr, "mknod %s 0%o 0x%llx umask=0%03o\n", |
… |
… |
|
1703 | 1708 | int fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode) |
1704 | 1709 | { |
1705 | 1710 | fuse_get_context()->private_data = fs->user_data; |
| 1711 | |
| 1712 | fuse_get_context()->umask &= ~0700; |
| 1713 | |
1706 | 1714 | if (fs->op.mkdir) { |
1707 | 1715 | if (fs->debug) |
1708 | 1716 | fprintf(stderr, "mkdir %s 0%o umask=0%03o\n", |