diff --git a/src/pkg/os/user/lookup_windows.go b/src/pkg/os/user/lookup_windows.go index 90fe0662e68..3626a4e9f05 100644 --- a/src/pkg/os/user/lookup_windows.go +++ b/src/pkg/os/user/lookup_windows.go @@ -27,7 +27,9 @@ func lookupFullName(domain, username, domainAndUser string) (string, error) { var p *byte e = syscall.NetUserGetInfo(d, u, 10, &p) if e != nil { - return "", e + // path executed when a domain user is disconnected from the domain + // pretend username is fullname + return username, nil } defer syscall.NetApiBufferFree(p) i := (*syscall.UserInfo10)(unsafe.Pointer(p))