phayes/permbits

Other{Read, Write, Execute} is returning the status of the group permissions

Closed this issue · 3 comments

This seems to be a pretty obvious copy&paste fail:

func (b PermissionBits) OtherRead() bool {
	return b&GroupRead != 0
}

func (b PermissionBits) OtherWrite() bool {
	return b&GroupWrite != 0
}

func (b PermissionBits) OtherExecute() bool {
	return b&GroupExecute != 0
}

🤦‍♂️ there's even a PR open already #1

?Guessing this should be closed @phayes

Closed. I think this has been fixed,