summaryrefslogtreecommitdiff
path: root/go/src/nshd/nslcd_backend/db_group.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-18 15:12:33 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-19 00:07:07 -0500
commit58ea9bb4a0803dfd1f9014ce0966699fc4b4633b (patch)
treef863f31e9baeee69c0973b983a5d10afc29e8f12 /go/src/nshd/nslcd_backend/db_group.go
parent6b23f1082f0d67293892726471af031c1bad882a (diff)
update dependencies
actually, roll "errors" back to the last tagged version, instead of master
Diffstat (limited to 'go/src/nshd/nslcd_backend/db_group.go')
-rw-r--r--go/src/nshd/nslcd_backend/db_group.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/go/src/nshd/nslcd_backend/db_group.go b/go/src/nshd/nslcd_backend/db_group.go
index 04c7e3b..e6c259b 100644
--- a/go/src/nshd/nslcd_backend/db_group.go
+++ b/go/src/nshd/nslcd_backend/db_group.go
@@ -17,10 +17,11 @@
package nslcd_backend
import (
+ "context"
+
"nshd/util"
p "git.lukeshu.com/go/libnslcd/nslcd_proto"
- s "golang.org/x/sys/unix"
)
func (o *Hackers) groupByName(name string, users bool) p.Group {
@@ -69,7 +70,7 @@ func (o *Hackers) groupByGid(gid int32, users bool) p.Group {
}
}
-func (o *Hackers) Group_ByName(cred s.Ucred, req p.Request_Group_ByName) <-chan p.Group {
+func (o *Hackers) Group_ByName(ctx context.Context, req p.Request_Group_ByName) <-chan p.Group {
o.lock.RLock()
ret := make(chan p.Group)
go func() {
@@ -85,7 +86,7 @@ func (o *Hackers) Group_ByName(cred s.Ucred, req p.Request_Group_ByName) <-chan
return ret
}
-func (o *Hackers) Group_ByGid(cred s.Ucred, req p.Request_Group_ByGid) <-chan p.Group {
+func (o *Hackers) Group_ByGid(ctx context.Context, req p.Request_Group_ByGid) <-chan p.Group {
o.lock.RLock()
ret := make(chan p.Group)
go func() {
@@ -102,7 +103,7 @@ func (o *Hackers) Group_ByGid(cred s.Ucred, req p.Request_Group_ByGid) <-chan p.
}
// note that the BYMEMBER call returns an empty members list
-func (o *Hackers) Group_ByMember(cred s.Ucred, req p.Request_Group_ByMember) <-chan p.Group {
+func (o *Hackers) Group_ByMember(ctx context.Context, req p.Request_Group_ByMember) <-chan p.Group {
o.lock.RLock()
ret := make(chan p.Group)
go func() {
@@ -123,7 +124,7 @@ func (o *Hackers) Group_ByMember(cred s.Ucred, req p.Request_Group_ByMember) <-c
return ret
}
-func (o *Hackers) Group_All(cred s.Ucred, req p.Request_Group_All) <-chan p.Group {
+func (o *Hackers) Group_All(ctx context.Context, req p.Request_Group_All) <-chan p.Group {
o.lock.RLock()
ret := make(chan p.Group)
go func() {