summaryrefslogtreecommitdiff
path: root/src/nshd
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd')
-rw-r--r--src/nshd/hackers_git/hackers.go8
-rw-r--r--src/nshd/hackers_git/hackers_watch.go10
2 files changed, 9 insertions, 9 deletions
diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go
index 0f2dd3d..ca3974d 100644
--- a/src/nshd/hackers_git/hackers.go
+++ b/src/nshd/hackers_git/hackers.go
@@ -28,10 +28,10 @@ type Hackers struct {
users map[int32]user
in_fd *inotify.Inotify
- in_wd_home inotify.Cint
- in_wd_yaml inotify.Cint
- in_uid2wd map[int32]inotify.Cint
- in_wd2uid map[inotify.Cint]int32
+ in_wd_home inotify.Wd
+ in_wd_yaml inotify.Wd
+ in_uid2wd map[int32]inotify.Wd
+ in_wd2uid map[inotify.Wd]int32
}
var _ nslcd_systemd.Backend = &Hackers{}
diff --git a/src/nshd/hackers_git/hackers_watch.go b/src/nshd/hackers_git/hackers_watch.go
index da008f8..b273741 100644
--- a/src/nshd/hackers_git/hackers_watch.go
+++ b/src/nshd/hackers_git/hackers_watch.go
@@ -36,7 +36,7 @@ func (o *Hackers) watchHomedir(uid int32) {
o.users[uid] = user
}
-func (o *Hackers) unwatchHomedir(wd inotify.Cint) {
+func (o *Hackers) unwatchHomedir(wd inotify.Wd) {
err := o.in_fd.RmWatch(wd)
if err != nil {
logger.Warning("hackers.git: %v", err)
@@ -57,8 +57,8 @@ func (o *Hackers) close() {
o.in_wd_home = -1
o.in_wd_yaml = -1
o.users = make(map[int32]user, 0)
- o.in_uid2wd = make(map[int32]inotify.Cint, 0)
- o.in_wd2uid = make(map[inotify.Cint]int32, 0)
+ o.in_uid2wd = make(map[int32]inotify.Wd, 0)
+ o.in_wd2uid = make(map[inotify.Wd]int32, 0)
}
func (o *Hackers) reload() (err error) {
@@ -69,8 +69,8 @@ func (o *Hackers) reload() (err error) {
filenames, err := filepath.Glob(o.cfg.Yamldir + "/*.yml")
o.users = make(map[int32]user, len(filenames))
- o.in_uid2wd = make(map[int32]inotify.Cint, len(filenames))
- o.in_wd2uid = make(map[inotify.Cint]int32, len(filenames))
+ o.in_uid2wd = make(map[int32]inotify.Wd, len(filenames))
+ o.in_wd2uid = make(map[inotify.Wd]int32, len(filenames))
for _, filename := range filenames {
logger.Debug("hackers.git: Loading yaml file: %s", filename)
user, err := load_user_yaml(filename)