permission bug creating finder info

This commit is contained in:
Kelvin Sherlock 2016-08-03 07:02:11 -04:00
parent c8a119f274
commit 68c2f65f15

View File

@ -108,7 +108,7 @@ namespace native {
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();
rv = write(fd, info, extended ? 32 : 16);