summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/db_passwd.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:41:55 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:41:55 -0600
commite729072329556406dfdb19b89d177e89e27ca4a7 (patch)
tree21c7400fb901c365576229cfb389421d74a21dda /src/nshd/hackers_git/db_passwd.go
parent6b94a9b6588112328fa2738b1c149b48908f5029 (diff)
nslcd_h: each of the custom types should have kind==struct, to make io easy
Diffstat (limited to 'src/nshd/hackers_git/db_passwd.go')
-rw-r--r--src/nshd/hackers_git/db_passwd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/db_passwd.go b/src/nshd/hackers_git/db_passwd.go
index 7bc3671..8aad45e 100644
--- a/src/nshd/hackers_git/db_passwd.go
+++ b/src/nshd/hackers_git/db_passwd.go
@@ -16,7 +16,7 @@ func (o *Hackers) Passwd_ByName(cred p.Ucred, req p.Request_Passwd_ByName) p.Pas
o.lock.RLock()
defer o.lock.RUnlock()
- uid := o.name2uid(string(req))
+ uid := o.name2uid(req.Name)
if uid < 0 {
return util.Passwd_Ø{}
}
@@ -30,7 +30,7 @@ func (o *Hackers) Passwd_ByUID(cred p.Ucred, req p.Request_Passwd_ByUID) p.Passw
o.lock.RLock()
defer o.lock.RUnlock()
- user, found := o.users[int32(req)]
+ user, found := o.users[req.UID]
if !found {
return util.Passwd_Ø{}
}