Skip to content

Commit e782d2d

Browse files
author
Natalie Arellano
committed
Test: see user
Signed-off-by: Natalie Arellano <narellano@vmware.com>
1 parent 5418c7f commit e782d2d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

internal/sshdialer/windows_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@ package sshdialer_test
55

66
import (
77
"errors"
8+
"fmt"
89
"net"
10+
"os/user"
911
"strings"
1012

1113
"github.com/hectane/go-acl"
1214
"gopkg.in/natefinch/npipe.v2"
1315
)
1416

1517
func fixupPrivateKeyMod(path string) {
18+
usr, err := user.Current()
19+
if err != nil {
20+
panic(err)
21+
}
22+
fmt.Println("XXX User:", usr.Name)
1623
err := acl.Chmod(path, 0400)
1724
if err != nil {
1825
panic(err)

0 commit comments

Comments
 (0)