diff options
author | rsc <devnull@localhost> | 2005-02-08 21:03:12 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-08 21:03:12 +0000 |
commit | 80ecfd2430750a6e24d5dd480c7d9aa2385e8fda (patch) | |
tree | d43ff4f0c397581f373ba50c44ef0cbef3f31be9 /src/lib9pclient | |
parent | b1cd1d55e1418f2ed8236d488f815d0108b99598 (diff) | |
download | plan9port-80ecfd2430750a6e24d5dd480c7d9aa2385e8fda.tar.gz plan9port-80ecfd2430750a6e24d5dd480c7d9aa2385e8fda.tar.bz2 plan9port-80ecfd2430750a6e24d5dd480c7d9aa2385e8fda.zip |
add auth
Diffstat (limited to 'src/lib9pclient')
-rw-r--r-- | src/lib9pclient/auth.c | 2 | ||||
-rw-r--r-- | src/lib9pclient/fs.c | 1 | ||||
-rw-r--r-- | src/lib9pclient/mkfile | 1 | ||||
-rw-r--r-- | src/lib9pclient/ns.c | 15 |
4 files changed, 18 insertions, 1 deletions
diff --git a/src/lib9pclient/auth.c b/src/lib9pclient/auth.c index 2c740e12..4fa3ac84 100644 --- a/src/lib9pclient/auth.c +++ b/src/lib9pclient/auth.c @@ -14,7 +14,7 @@ fsauth(CFsys *fsys, char *uname, char *aname) void *freep; CFid *afid; - if((fid = _fsgetfid(fsys)) == nil) + if((afid = _fsgetfid(fsys)) == nil) return nil; tx.type = Tauth; diff --git a/src/lib9pclient/fs.c b/src/lib9pclient/fs.c index e51876c3..a7bf1b9e 100644 --- a/src/lib9pclient/fs.c +++ b/src/lib9pclient/fs.c @@ -145,6 +145,7 @@ fsversion(CFsys *fs, int msize, char *version, int nversion) strecpy(version, version+nversion, rx.version); free(freep); + fs->msize = rx.msize; return rx.msize; } diff --git a/src/lib9pclient/mkfile b/src/lib9pclient/mkfile index 097f20ad..cbba9534 100644 --- a/src/lib9pclient/mkfile +++ b/src/lib9pclient/mkfile @@ -3,6 +3,7 @@ LIB=lib9pclient.a OFILES=\ + auth.$O\ close.$O\ create.$O\ dirread.$O\ diff --git a/src/lib9pclient/ns.c b/src/lib9pclient/ns.c index 9c86547e..428f7fbb 100644 --- a/src/lib9pclient/ns.c +++ b/src/lib9pclient/ns.c @@ -38,3 +38,18 @@ nsmount(char *name, char *aname) return fs; } + +CFid* +nsopen(char *name, char *aname, char *fname, int mode) +{ + CFsys *fs; + CFid *fid; + + fs = nsmount(name, aname); + if(fs == nil) + return nil; + fid = fsopen(fs, fname, mode); + fsunmount(fs); + return fid; +} + |