diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-17 02:14:26 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-17 02:14:26 +0000 |
commit | 11f3fac32cc34ae2b0dd7d12ef6e0ab59690cc4e (patch) | |
tree | 80588d6158a357148b3a12e4a1575ff85610cedc /sys/src/cmd/cwfs/9p2.c | |
parent | 0159ee648e182cb6617596bf4f3ff45bf632610b (diff) |
cwfs: remove p9sk1 code, use factotum
Diffstat (limited to 'sys/src/cmd/cwfs/9p2.c')
-rw-r--r-- | sys/src/cmd/cwfs/9p2.c | 6 |
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"); |