This adds a -A option to import, which forces it to use no auth- entication at all. This is required for connecting to Inferno on other host systems than Plan 9, where no authentication can be performed. Reference: /n/sources/patch/applied/import-no-auth Date: Sat Nov 19 22:24:51 CET 2005 --- /sys/src/cmd/import.c Sat Nov 19 22:24:07 2005 +++ /sys/src/cmd/import.c Sat Nov 19 22:24:02 2005 @@ -23,6 +23,7 @@ char *aan = "/bin/aan"; AuthInfo *ai; int debug; +int noauth; int connect(char*, char*, int); int passive(void); @@ -74,6 +75,9 @@ oldserver = 0; mntflags = MREPL; ARGBEGIN{ + case 'A': + noauth = 1; + break; case 'a': mntflags = MAFTER; break; @@ -269,9 +273,11 @@ else authp = "p9any"; - ai = auth_proxy(fd, auth_getkey, "proto=%q role=client %s", authp, keyspec); - if(ai == nil) - sysfatal("%r: %s", system); + if(noauth == 0){ + ai = auth_proxy(fd, auth_getkey, "proto=%q role=client %s", authp, keyspec); + if(ai == nil) + sysfatal("%r: %s", system); + } n = write(fd, tree, strlen(tree)); if(n < 0) @@ -314,7 +320,7 @@ void usage(void) { - fprint(2, "usage: import [-abcC] [-E clear|ssl|tls] [-e 'crypt auth'|clear] [-k keypattern] [-p] host remotefs [mountpoint]\n"); + fprint(2, "usage: import [-aAbcC] [-E clear|ssl|tls] [-e 'crypt auth'|clear] [-k keypattern] [-p] host remotefs [mountpoint]\n"); exits("usage"); } --- /sys/man/4/import Sat Nov 19 22:24:29 2005 +++ /sys/man/4/import Sat Nov 19 22:24:24 2005 @@ -61,6 +61,9 @@ .I file is a directory. .TP +.B -A +Do not try to authenticate. +.TP .B -B Run in ``backwards'' mode, described below. .TP