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

9cpu/Feedkey broken #23

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 1 comment
Open

9cpu/Feedkey broken #23

GoogleCodeExporter opened this issue Apr 11, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Start Feedkey in ACME-sac
2. 9cpu -h some.cpu.server
3. look at console

What is the expected output? What do you see instead?

I expect to be cpu'd into the target system, instead I see the following on the 
console:
-> proto=p9any role=client <-
proto=p9any
start p9any
findkey '!password? user? proto=p9sk1 dom=vmware'
[Bufio] Broken: "Bus error"


What version of the product are you using? On what operating system?
built from hg code version: changeset:   226:ffec88ce5fdb

Please provide any additional information below.
I'm trying to cpu to a vmware image on the same machine, but this has worked 
under normal 
Inferno using wm/feedkey, so I'm not sure what's going south.


Original issue reported on code.google.com by eri...@gmail.com on 22 May 2009 at 6:50

@GoogleCodeExporter
Copy link
Author

This patch from Noah fixes the problem:

--- /appl/cmd/9cpu.b Thu May 21 12:49:29 EDT 2009
+++ 9cpu.b Mon May 25 11:44:05 EDT 2009
@@ -102,6 +102,11 @@
        fatal(sys->sprint("unknown authentication method %q", authmethod));

    sys->pctl(Sys->FORKNS, nil);
+   # get an authenticated connection
+   # run rio if you have a plan 9 window. 
+   # if it's an inferno command. run a shell otherwise mount 
+   # you also want to import that context. 
+   # then what? 
    (dfd, err) := rexcall(system, authmethod, keyspec, ealgs);
    if(dfd == nil)
        fatal(err);
@@ -144,7 +149,7 @@
    if(exdir != "/")
        fatal("cannot export portion of namespace");

-   sys->write(dfd, array[] of {byte 'O', byte 'K'}, 2);
+   sys->write(dfd, array of byte "OK", 2);

    # set up the namespace that we wish to export
    if(wmexport){

Original comment by eri...@gmail.com on 25 May 2009 at 3:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant