summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/9p2.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-04-17 02:14:26 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-04-17 02:14:26 +0000
commit11f3fac32cc34ae2b0dd7d12ef6e0ab59690cc4e (patch)
tree80588d6158a357148b3a12e4a1575ff85610cedc /sys/src/cmd/cwfs/9p2.c
parent0159ee648e182cb6617596bf4f3ff45bf632610b (diff)
cwfs: remove p9sk1 code, use factotum
Diffstat (limited to 'sys/src/cmd/cwfs/9p2.c')
-rw-r--r--sys/src/cmd/cwfs/9p2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/src/cmd/cwfs/9p2.c b/sys/src/cmd/cwfs/9p2.c
index c36c613eb..947db5fa6 100644
--- a/sys/src/cmd/cwfs/9p2.c
+++ b/sys/src/cmd/cwfs/9p2.c
@@ -214,7 +214,7 @@ out:
return error;
}
-int
+static int
authorize(Chan* chan, Fcall* f)
{
File* af;
@@ -244,6 +244,10 @@ authorize(Chan* chan, Fcall* f)
print("authorize: af == nil\n");
return -1;
}
+
+ /* fake read to get auth info */
+ authread(af, nil, 0);
+
if(af->auth == nil){
if(db)
print("authorize: af->auth == nil\n");