summaryrefslogtreecommitdiff
path: root/appl/lib
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2014-05-24 18:46:11 +0100
committerCharles Forsyth <charles.forsyth@gmail.com>2014-05-24 18:46:11 +0100
commit934fd753d60353d854b3450c1cfe1c7a8e713579 (patch)
tree7b6ffee1a6f6d7148db52f3851102efb41aacdb9 /appl/lib
parent7fa4db66cbbf3a7ecf8f37269bd531eccc84f992 (diff)
allow / in aname (plan 9 change previously missed) [issue 312]
Diffstat (limited to 'appl/lib')
-rw-r--r--appl/lib/factotum.b4
1 files changed, 4 insertions, 0 deletions
diff --git a/appl/lib/factotum.b b/appl/lib/factotum.b
index 97138fe1..d807705d 100644
--- a/appl/lib/factotum.b
+++ b/appl/lib/factotum.b
@@ -66,6 +66,10 @@ mount(fd: ref Sys->FD, mnt: string, flags: int, aname: string, keyspec: string):
{
ai: ref Authinfo;
afd := sys->fauth(fd, aname);
+ if(debug && afd == nil){
+ sys->print("fauth %s: %r\n", aname);
+ return (-1, nil);
+ }
if(afd != nil){
ai = proxy(afd, open(), "proto=p9any role=client "+keyspec);
if(debug && ai == nil){