Commit 58a7e145 authored by C.U's avatar C.U Committed by Han-Wen Nienhuys

Ports commit fee50bf0 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.

Fixes: #373
Change-Id: Ieadc0e074f4d803e88f9c21bb15b90eb9010afd8
parent d01fda7e
...@@ -32,7 +32,7 @@ func pollHack(mountPoint string) error { ...@@ -32,7 +32,7 @@ func pollHack(mountPoint string) error {
POLLHUP = 0x10 POLLHUP = 0x10
) )
fd, err := syscall.Open(filepath.Join(mountPoint, pollHackName), syscall.O_CREAT|syscall.O_TRUNC|syscall.O_RDWR, 0644) fd, err := syscall.Open(filepath.Join(mountPoint, pollHackName), syscall.O_RDONLY, 0)
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment