summaryrefslogtreecommitdiff
path: root/appl/cmd/auth
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-01-16 13:39:58 +0000
committerCharles.Forsyth <devnull@localhost>2008-01-16 13:39:58 +0000
commit3f1f06c5d12b24c4061e5123acabf72348ff45a2 (patch)
treed40487b0f5d3a46c5e1cefe288f9a74b8494d9a7 /appl/cmd/auth
parentca1042d3d05e5e9b2b5094b04197c96ec3b34bfe (diff)
20080116-1340
Diffstat (limited to 'appl/cmd/auth')
-rw-r--r--appl/cmd/auth/changelogin.b1
-rw-r--r--appl/cmd/auth/keysrv.b4
-rw-r--r--appl/cmd/auth/passwd.b4
3 files changed, 4 insertions, 5 deletions
diff --git a/appl/cmd/auth/changelogin.b b/appl/cmd/auth/changelogin.b
index 97141408..f0d84256 100644
--- a/appl/cmd/auth/changelogin.b
+++ b/appl/cmd/auth/changelogin.b
@@ -206,7 +206,6 @@ getuser(id: string): (string, array of byte, int, string)
if(sys->read(fd, secret, len secret) != len secret)
return (nil, nil, 0, sys->sprint("error reading %s/secret: %r", id));
}
- expiry := 0;
fd = sys->open(dbdir+"/expire", Sys->OREAD);
if(fd == nil)
return (nil, nil, 0, sys->sprint("can't open %s/expiry: %r", id));
diff --git a/appl/cmd/auth/keysrv.b b/appl/cmd/auth/keysrv.b
index c7144256..fb0bd9d7 100644
--- a/appl/cmd/auth/keysrv.b
+++ b/appl/cmd/auth/keysrv.b
@@ -116,7 +116,7 @@ worker(file: ref Sys->FileIO, user: string, exitc: chan of int)
for(;;)alt{
<-exitc =>
exit;
- (nil, nbytes, fid, rc) := <-file.read =>
+ (nil, nil, nil, rc) := <-file.read =>
if(rc == nil)
break;
if(err != nil){
@@ -124,7 +124,7 @@ worker(file: ref Sys->FileIO, user: string, exitc: chan of int)
break;
}
rc <-= (nil, nil);
- (nil, data, fid, wc) := <-file.write =>
+ (nil, data, nil, wc) := <-file.write =>
if(wc == nil)
break;
if(err != nil){
diff --git a/appl/cmd/auth/passwd.b b/appl/cmd/auth/passwd.b
index d10b5c95..b001cb16 100644
--- a/appl/cmd/auth/passwd.b
+++ b/appl/cmd/auth/passwd.b
@@ -80,7 +80,7 @@ init(nil: ref Draw->Context, args: list of string)
sys->print("key owner: %s\n", ai.mypk.owner);
sys->pctl(Sys->FORKNS|Sys->FORKFD, nil);
- remid := mountsrv(ai);
+ mountsrv(ai);
# get password
ok: int;
@@ -224,7 +224,7 @@ netmkaddr(addr, net, svc: string): string
{
if(net == nil)
net = "net";
- (n, l) := sys->tokenize(addr, "!");
+ (n, nil) := sys->tokenize(addr, "!");
if(n <= 1){
if(svc== nil)
return sys->sprint("%s!%s", net, addr);