From 68c2f65f158d02dcb21044284731e2331858c9ef Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 3 Aug 2016 07:02:11 -0400 Subject: [PATCH] permission bug creating finder info --- native/SunOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/SunOS.cpp b/native/SunOS.cpp index 05b2ba6..ce46916 100644 --- a/native/SunOS.cpp +++ b/native/SunOS.cpp @@ -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);