|
|
@@ -64,6 +64,9 @@ func init() {
|
|
|
if err == nil {
|
|
|
userName = current.Username
|
|
|
}
|
|
|
+
|
|
|
+ // Sanitize userName since it may contain filepath separators on Windows.
|
|
|
+ userName = strings.Replace(userName, `\`, "_", -1)
|
|
|
}
|
|
|
|
|
|
// shortHostname returns its argument, truncating at the first period.
|