mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
Added missing arg for linux test
This commit is contained in:
parent
c3193d4a77
commit
826b4de2a3
2 changed files with 3 additions and 3 deletions
|
@ -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("hkexsh", user, "/dev/pts0", host)
|
goutmp.Put_lastlog_entry("xs", user, "/dev/pts0", host)
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
goutmp.Unput_utmp(utmp)
|
goutmp.Unput_utmp(utmp)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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, host)
|
utmp := goutmp.Put_utmp(user, "/dev/pts0", host)
|
||||||
goutmp.Put_lastlog_entry("hkexsh", user, host)
|
goutmp.Put_lastlog_entry("xs", user, "/dev/pts0", host)
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
goutmp.Unput_utmp(utmp)
|
goutmp.Unput_utmp(utmp)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue