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

When attaching, set numeric username to NOUID if not using dotu. #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mbucc
Copy link

@mbucc mbucc commented Aug 17, 2015

Missing else clause. See:
https://github.com/9fans/plan9port/blob/master/src/lib9/convM2S.c#L106-L122

Fixes issue #8.

Functionally, this is very similar to the fix @mischief pushed in:
lionkov/go9p@11a6348

@mbucc mbucc changed the title When attaching, set numeric username to NOUID it not using dotu. When attaching, set numeric username to NOUID if not using dotu. Aug 22, 2015
@mbucc
Copy link
Author

mbucc commented Aug 22, 2015

Hmm, looks like this breaks the unit tests.

Otherwise,

  1. the server version is 9P2000,
  2. clnt.Dotu is set to false,
  3. Srv.attach tries to get user from Uname2User(),
  4. which returns nil in OsUsers and
  5. so attach fails.
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.

1 participant