diff options
author | rsc <devnull@localhost> | 2005-02-11 16:53:27 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-11 16:53:27 +0000 |
commit | 0d4243f78929fe3b7f7501776483f10cd515b482 (patch) | |
tree | 778629cc2088feeb9423e43322391f49777b1a43 /src/cmd/9p.c | |
parent | 6613ff14c762dd0c14df64b3b95450de7390e369 (diff) | |
download | plan9port-0d4243f78929fe3b7f7501776483f10cd515b482.tar.gz plan9port-0d4243f78929fe3b7f7501776483f10cd515b482.tar.bz2 plan9port-0d4243f78929fe3b7f7501776483f10cd515b482.zip |
use nsamount and fsamount
Diffstat (limited to 'src/cmd/9p.c')
-rw-r--r-- | src/cmd/9p.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/9p.c b/src/cmd/9p.c index cc4336b3..2f76963c 100644 --- a/src/cmd/9p.c +++ b/src/cmd/9p.c @@ -3,6 +3,7 @@ #include <libc.h> #include <fcall.h> #include <9pclient.h> +#include <auth.h> #include <thread.h> char *addr; @@ -52,7 +53,8 @@ threadmain(int argc, char **argv) addr = EARGF(usage()); break; case 'D': - + chatty9pclient = 1; + break; default: usage(); }ARGEND @@ -86,7 +88,7 @@ xparse(char *name, char **path) else *p++ = 0; *path = p; - fs = nsmount(name, ""); + fs = nsamount(name, ""); if(fs == nil) sysfatal("mount: %r"); }else{ @@ -94,7 +96,7 @@ xparse(char *name, char **path) fprint(2, "dial %s...", addr); if((fd = dial(addr, nil, nil, nil)) < 0) sysfatal("dial: %r"); - if((fs = fsmount(fd, "")) == nil) + if((fs = fsamount(fd, "")) == nil) sysfatal("fsmount: %r"); } return fs; |