diff --git a/internal/agent/ship.go b/internal/agent/ship.go index bffc9d1..bcc2ef4 100644 --- a/internal/agent/ship.go +++ b/internal/agent/ship.go @@ -457,9 +457,9 @@ func (a *Agent) doShipIn(ctx context.Context, env proto.TaskEnvelope) proto.Task type unpacker struct { dir, conflict string names map[string]bool // the top entries the stream may carry - uid, gid int - chown bool - done, skipped int + uid, gid int + chown bool + done, skipped int } func (u *unpacker) unpack(tr *tar.Reader) error { diff --git a/internal/server/sshhosts_test.go b/internal/server/sshhosts_test.go index 76fb1e6..5afa8a2 100644 --- a/internal/server/sshhosts_test.go +++ b/internal/server/sshhosts_test.go @@ -32,7 +32,7 @@ func TestSavedSSHHosts(t *testing.T) { if list := s.listSSHHosts(a.ID); len(list) != 1 || list[0].Label != "web" { t.Fatalf("list: %+v", list) } - if len(s.listSSHHosts(a.ID + 1)) != 0 { + if len(s.listSSHHosts(a.ID+1)) != 0 { t.Fatal("another user sees the host") } }