aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auth/factotum/secstore.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-13 22:09:47 +0000
committerrsc <devnull@localhost>2005-02-13 22:09:47 +0000
commit1757e76a73818470d0d8d062ca2d05e3fc7c9524 (patch)
tree97266abddbb7fe1611c4daaeef4e4390a5895b39 /src/cmd/auth/factotum/secstore.c
parent45993349d8414bdf7eb24d8996e02aa4d53951ad (diff)
downloadplan9port-1757e76a73818470d0d8d062ca2d05e3fc7c9524.tar.gz
plan9port-1757e76a73818470d0d8d062ca2d05e3fc7c9524.tar.bz2
plan9port-1757e76a73818470d0d8d062ca2d05e3fc7c9524.zip
new
Diffstat (limited to 'src/cmd/auth/factotum/secstore.c')
-rw-r--r--src/cmd/auth/factotum/secstore.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/auth/factotum/secstore.c b/src/cmd/auth/factotum/secstore.c
index d82d7862..0156e170 100644
--- a/src/cmd/auth/factotum/secstore.c
+++ b/src/cmd/auth/factotum/secstore.c
@@ -45,8 +45,11 @@ havesecstore(void)
hnputs(buf, 0x8000+n-2);
fd = secdial();
- if(fd < 0)
+ if(fd < 0){
+ if(debug)
+ fprint(2, "secdial: %r\n");
return 0;
+ }
if(write(fd, buf, n) != n || readn(fd, buf, 2) != 2){
close(fd);
return 0;