summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/db_shadow.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_shadow.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_shadow.go')
-rw-r--r--src/nshd/hackers_git/db_shadow.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/db_shadow.go b/src/nshd/hackers_git/db_shadow.go
index df628cf..468f79d 100644
--- a/src/nshd/hackers_git/db_shadow.go
+++ b/src/nshd/hackers_git/db_shadow.go
@@ -12,7 +12,7 @@ func (o *Hackers) Shadow_ByName(cred p.Ucred, req p.Request_Shadow_ByName) p.Sha
if cred.Uid != 0 {
return util.Shadow_Ø{}
}
- uid := o.name2uid(string(req))
+ uid := o.name2uid(req.Name)
passwd := o.users[uid].passwd
shadow := p.Shadow{
Name: passwd.Name,