diff options
author | David du Colombier <0intro@gmail.com> | 2012-12-09 11:24:30 +0100 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2012-12-09 11:24:30 +0100 |
commit | 0b4fd921055175e9dda8c424f9252f4141507742 (patch) | |
tree | ab4ceac5dde1e7e52a761541e268e250b238a194 /src/cmd/auth | |
parent | 09adcb09011d8cc1391b0f4553928fc9cfaf3970 (diff) | |
download | plan9port-0b4fd921055175e9dda8c424f9252f4141507742.tar.gz plan9port-0b4fd921055175e9dda8c424f9252f4141507742.tar.bz2 plan9port-0b4fd921055175e9dda8c424f9252f4141507742.zip |
auth/factotum: fix password prompt hang with secstore
R=rsc
http://codereview.appspot.com/6906057
Diffstat (limited to 'src/cmd/auth')
-rw-r--r-- | src/cmd/auth/factotum/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/auth/factotum/main.c b/src/cmd/auth/factotum/main.c index 2cf39661..1f603ac7 100644 --- a/src/cmd/auth/factotum/main.c +++ b/src/cmd/auth/factotum/main.c @@ -70,8 +70,6 @@ threadmain(int argc, char *argv[]) if(argc != 0) usage(); - rfork(RFNOTEG); - if(trysecstore && havesecstore()){ while(secstorefetch() < 0){ rerrstr(err, sizeof err); @@ -81,7 +79,9 @@ threadmain(int argc, char *argv[]) fprint(2, "Enter an empty password to quit.\n"); } } - + + rfork(RFNOTEG); + fsinit0(); threadpostmountsrv(&fs, service, mtpt, MBEFORE); threadexits(nil); |