From 11f3fac32cc34ae2b0dd7d12ef6e0ab59690cc4e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 17 Apr 2011 02:14:26 +0000 Subject: cwfs: remove p9sk1 code, use factotum --- sys/src/cmd/cwfs/9p2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/src/cmd/cwfs/9p2.c') 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"); -- cgit v1.2.3