diff options
Diffstat (limited to 'src/nshd/hackers_git')
-rw-r--r-- | src/nshd/hackers_git/db_config.go | 9 | ||||
-rw-r--r-- | src/nshd/hackers_git/hackers.go | 9 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/nshd/hackers_git/db_config.go b/src/nshd/hackers_git/db_config.go index 5ef4fe6..aa8bef8 100644 --- a/src/nshd/hackers_git/db_config.go +++ b/src/nshd/hackers_git/db_config.go @@ -1,6 +1,9 @@ package hackers_git -import p "nslcd_proto" +import ( + p "nslcd_proto" + "nslcd_proto/util" +) func (o *Hackers) Config_Get(cred p.Ucred, req p.Request_Config_Get) p.Config_Enumerator { o.lock.RLock() @@ -16,8 +19,8 @@ func (o *Hackers) Config_Get(cred p.Ucred, req p.Request_Config_Get) p.Config_En } if val != nil { - return p.New_Config_List([]p.Config{p.Config(*val)}) + return util.New_Config_List([]p.Config{p.Config(*val)}) } else { - return p.Config_Ø{} + return util.Config_Ø{} } } diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go index f7c4573..230f08b 100644 --- a/src/nshd/hackers_git/hackers.go +++ b/src/nshd/hackers_git/hackers.go @@ -2,7 +2,8 @@ package hackers_git import ( "inotify" - p "nslcd_proto" + "nslcd_proto" + "nslcd_proto/util" "nslcd_systemd" "sd_daemon/logger" "sync" @@ -14,10 +15,10 @@ type Config struct { } type Hackers struct { - p.NullBackend + util.NullBackend cfg Config lock sync.RWMutex - users map[int32]p.Passwd + users map[int32]nslcd_proto.Passwd passwords map[int32]string in_fd *inotify.Inotify @@ -28,7 +29,7 @@ type Hackers struct { } var _ nslcd_systemd.Backend = &Hackers{} -var _ p.Backend = &Hackers{} +var _ nslcd_proto.Backend = &Hackers{} func (o *Hackers) Close() { logger.Info("Closing hackers.git session") |