summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/9p2.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-01 07:41:21 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-01 07:41:21 +0000
commit09a848d825a600a2fe67ce37192a11fbf9f3685f (patch)
tree6525a9a99806528af28a16ef4358360fe53c8b56 /sys/src/cmd/cwfs/9p2.c
parentdb7290d79e86abfdab490e793073a4936c8e1e5f (diff)
cwfs: cleanup
Diffstat (limited to 'sys/src/cmd/cwfs/9p2.c')
-rw-r--r--sys/src/cmd/cwfs/9p2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/src/cmd/cwfs/9p2.c b/sys/src/cmd/cwfs/9p2.c
index 30dfdef64..731e1c3a3 100644
--- a/sys/src/cmd/cwfs/9p2.c
+++ b/sys/src/cmd/cwfs/9p2.c
@@ -242,7 +242,7 @@ authorize(Chan* chan, Fcall* f)
}
/* fake read to get auth info */
- authread(chan, af, nil, 0);
+ authread(af, nil, 0);
uid = af->uid;
if(db)
print("authorize: uid is %d\n", uid);
@@ -283,6 +283,7 @@ attach(Chan* chan, Fcall* f, Fcall* r)
error = Ebadu;
goto out;
}
+ chan->err[0] = 0;
}
file->uid = u;
@@ -1001,7 +1002,7 @@ fs_read(Chan* chan, Fcall* f, Fcall* r, uchar* data)
goto out;
}
if(file->qid.type & QTAUTH){
- nread = authread(chan, file, (uchar*)data, count);
+ nread = authread(file, (uchar*)data, count);
if(nread < 0)
error = Eauth2;
goto out;
@@ -1198,7 +1199,7 @@ fs_write(Chan* chan, Fcall* f, Fcall* r)
}
if(file->qid.type & QTAUTH){
- nwrite = authwrite(chan, file, (uchar*)f->data, count);
+ nwrite = authwrite(file, (uchar*)f->data, count);
if(nwrite < 0)
error = Eauth2;
goto out;