Open r0l1 opened 11 months ago
func mountFlags() (uintptr, string) { rootMountFlags, options := sunderMountFlags(rootFlags, rootAutodiscoveryMountFlags) if rootRo { rootMountFlags |= unix.MS_RDONLY } if rootRw { rootMountFlags &^= unix.MS_RDONLY } return rootMountFlags, options }
func mountFlags() (uintptr, string) { rootMountFlags, options := sunderMountFlags(rootFlags, rootAutodiscoveryMountFlags) if rootRo { rootMountFlags |= unix.MS_RDONLY } else if rootRw { rootMountFlags &^= unix.MS_RDONLY } return rootMountFlags, options }
Current code
Suggestion