Skip to content

Commit 399d2e9

Browse files
Make pollHack work on read-only mounts on Darwin
Ports commit fee50bf to poll_darwin.go in order to allow read-only mounts on Darwin as well. Fixes rfjakob/gocryptfs#595 where we can't use gocryptfs -ro or gocryptfs -reverse on macOS because go-fuse tries to write to the read-only mountpoint during initial mount. Cheers! Edit: signed the CLA and re-pushed so automated checks pass Edit: potentially fixes hanwen#373 hanwen#420
1 parent f57e95b commit 399d2e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fuse/poll_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func pollHack(mountPoint string) error {
3232
POLLHUP = 0x10
3333
)
3434

35-
fd, err := syscall.Open(filepath.Join(mountPoint, pollHackName), syscall.O_CREAT|syscall.O_TRUNC|syscall.O_RDWR, 0644)
35+
fd, err := syscall.Open(filepath.Join(mountPoint, pollHackName), syscall.O_RDONLY, 0)
3636
if err != nil {
3737
return err
3838
}

0 commit comments

Comments
 (0)