• Alexey Borzenkov's avatar
    os/user: faster user lookup on Windows · fae362e9
    Alexey Borzenkov authored
    Trying to lookup user's display name with directory services can
    take several seconds when user's computer is not in a domain.
    As a workaround, check if computer is joined in a domain first,
    and don't use directory services if it is not.
    Additionally, don't leak tokens in user.Current().
    Fixes #5298.
    
    R=golang-dev, bradfitz, alex.brainman, lucio.dere
    CC=golang-dev
    https://golang.org/cl/8541047
    fae362e9
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...