lbivens / acme-sac

Automatically exported from code.google.com/p/acme-sac
Other
0 stars 0 forks source link

9cpu/Feedkey broken #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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