Skip to content

Commit

Permalink
Ports commit fee50bf to poll_darwin.go in order to allow read-only mo…
Browse files Browse the repository at this point in the history
…unts 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
  • Loading branch information
krim404 authored and hanwen committed Aug 22, 2022
1 parent d01fda7 commit 58a7e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuse/poll_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func pollHack(mountPoint string) error {
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 {
return err
}
Expand Down

0 comments on commit 58a7e14

Please sign in to comment.