Compare commits

..

No commits in common. "e75ee8b119512d793b3b7d4c02cb7be735e3254d" and "c3193d4a774614dc64b5c5f8810f01eb5f973aac" have entirely different histories.

3 changed files with 3 additions and 6 deletions

3
go.mod
View file

@ -1,3 +0,0 @@
module blitter.com/go/goutmp
go 1.17

View file

@ -12,7 +12,7 @@ func main() {
user := "bin" user := "bin"
host := "test.example.com" host := "test.example.com"
utmp := goutmp.Put_utmp(user, "/dev/pts0", host) utmp := goutmp.Put_utmp(user, "/dev/pts0", host)
goutmp.Put_lastlog_entry("xs", user, "/dev/pts0", host) goutmp.Put_lastlog_entry("hkexsh", user, "/dev/pts0", host)
time.Sleep(10 * time.Second) time.Sleep(10 * time.Second)
goutmp.Unput_utmp(utmp) goutmp.Unput_utmp(utmp)
} }

View file

@ -11,8 +11,8 @@ import (
func main() { func main() {
user := "bin" user := "bin"
host := "test.example.com" host := "test.example.com"
utmp := goutmp.Put_utmp(user, "/dev/pts0", host) utmp := goutmp.Put_utmp(user, host)
goutmp.Put_lastlog_entry("xs", user, "/dev/pts0", host) goutmp.Put_lastlog_entry("hkexsh", user, host)
time.Sleep(10 * time.Second) time.Sleep(10 * time.Second)
goutmp.Unput_utmp(utmp) goutmp.Unput_utmp(utmp)
} }