mirror of
https://github.com/ksherlock/mpw.git
synced 2025-02-17 04:31:06 +00:00
permission bug creating finder info
This commit is contained in:
parent
c8a119f274
commit
68c2f65f15
@ -108,7 +108,7 @@ namespace native {
|
|||||||
prodos_ftype_in(buffer);
|
prodos_ftype_in(buffer);
|
||||||
|
|
||||||
|
|
||||||
int fd = attropen(path_name.c_str(), XATTR_FINDERINFO_NAME, O_WRONLY | O_CREAT);
|
int fd = attropen(path_name.c_str(), XATTR_FINDERINFO_NAME, O_WRONLY | O_CREAT, 0666);
|
||||||
if (fd < 0) return macos_error_from_errno();
|
if (fd < 0) return macos_error_from_errno();
|
||||||
|
|
||||||
rv = write(fd, info, extended ? 32 : 16);
|
rv = write(fd, info, extended ? 32 : 16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user