Page MenuHomeFreeBSD

flua: add a chown(2) binding
ClosedPublic

Authored by bapt on Thu, Nov 24, 8:16 AM.

Details

Reviewers
kevans
bapt

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48495
Build 45381: arc lint + arc unit

Event Timeline

bapt requested review of this revision.Thu, Nov 24, 8:16 AM
libexec/flua/modules/lposix.c
77

The official luaposix interface actually allows 2 or 3 args, nil for either user/group resulting in -1 -- IMO I think we should do the same. It technically also resolves strings if they're passed, though I don't feel as strongly about that.

81

s/2/3/?

almost follow luaposix, just be stricter and report if a user or group
is valid or not.

bapt marked 2 inline comments as done.Thu, Nov 24, 2:41 PM
This revision is now accepted and ready to land.Fri, Nov 25, 7:59 AM