Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some Windows issues #283

Merged
merged 3 commits into from
Sep 26, 2019
Merged

Fix some Windows issues #283

merged 3 commits into from
Sep 26, 2019

Conversation

fhs
Copy link
Contributor

@fhs fhs commented Sep 24, 2019

  • Allow Uname mismatch in Tattach, since we don't have any authentication and some libraries (e.g. 9fans.net/go/plan9/client) gets Uname wrong anyway.
  • Add -fsys.addr flag for Windows. This allows user to listen to a specified port instead of a random one.
  • Replace $HOME with os.UserHomeDir(), which was introduced in Go 1.12. Update Default location of dump file #222

Helps 9fans/acme-lsp#14

fhs added 3 commits September 24, 2019 15:25
Since we don't have any authentication and some libraries get Uname
wrong anyway, allow Uname mismatch.
This allows user to listen to a specified port instead of a random one.
os.UserHomeDir() was introduced in Go 1.12.

Update rjkroege#222
@codecov
Copy link

codecov bot commented Sep 24, 2019

Codecov Report

Merging #283 into master will increase coverage by 0.4%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #283     +/-   ##
=========================================
+ Coverage   51.13%   51.54%   +0.4%     
=========================================
  Files          47       47             
  Lines       10195    10116     -79     
=========================================
+ Hits         5213     5214      +1     
+ Misses       4591     4511     -80     
  Partials      391      391
Impacted Files Coverage Δ
acme.go 23.66% <0%> (-0.17%) ⬇️
fsys.go 79.89% <66.66%> (+0.05%) ⬆️
addr.go 80.55% <0%> (+0.37%) ⬆️
internal/regexp/backtrack.go 4.12% <0%> (+1.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5287cc7...56e8aba. Read the comment docs.

@@ -275,7 +276,12 @@ func (fs *fileServer) flush(x *Xfid, f *Fid) *Xfid {

func (fs *fileServer) attach(x *Xfid, f *Fid) *Xfid {
if x.fcall.Uname != fs.username {
return fs.respond(x, nil, ErrPermission)
// Ignore mismatch because some libraries gets it wrong
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: get it wrong

@rjkroege rjkroege merged commit d3bad36 into rjkroege:master Sep 26, 2019
@rjkroege
Copy link
Owner

Thanks for the awesome fixes.

@fhs fhs deleted the windows branch September 26, 2019 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants