Skip to content

Commit 9040d49

Browse files
committed
more comment refinement
1 parent cd09dc1 commit 9040d49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ func isValidFSPath(fsPath string) bool {
231231

232232
func isReadOnly(mountOpts string) bool {
233233
mOpts := strings.Split(mountOpts, ",")
234-
// "ro" covers Linux and Windows, "read-only" covers macOS
234+
// "ro" should cover Linux, macOS, and Windows, "read-only" is reportd by mount(8)
235+
// on macOS so check for it, just in case
235236
if contains(mOpts, "ro") || contains(mOpts, "read-only") {
236237
return true
237238
}

0 commit comments

Comments
 (0)