diff options
author | Russ Cox <rsc@swtch.com> | 2010-12-07 13:17:27 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-12-07 13:17:27 -0500 |
commit | d10a7ed9a899c17d142021298dd45b4ea9ae6b84 (patch) | |
tree | 2db41c0bdc2b98512905111efe5076bcb98d8c92 /src/cmd/auth | |
parent | 00f0146a5c8c41ab32a75a5f553ab879b2412cb5 (diff) | |
download | plan9port-d10a7ed9a899c17d142021298dd45b4ea9ae6b84.tar.gz plan9port-d10a7ed9a899c17d142021298dd45b4ea9ae6b84.tar.bz2 plan9port-d10a7ed9a899c17d142021298dd45b4ea9ae6b84.zip |
auth/factotum: fix password prompt hang
Fixes #51.
R=rsc
http://codereview.appspot.com/3431044
Diffstat (limited to 'src/cmd/auth')
-rw-r--r-- | src/cmd/auth/factotum/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/auth/factotum/main.c b/src/cmd/auth/factotum/main.c index fdf4e1bb..2cf39661 100644 --- a/src/cmd/auth/factotum/main.c +++ b/src/cmd/auth/factotum/main.c @@ -26,8 +26,6 @@ threadmain(int argc, char *argv[]) char *mtpt; char err[ERRMAX]; - rfork(RFNOTEG); - /* mtpt = "/mnt"; */ mtpt = nil; owner = getuser(); @@ -72,6 +70,8 @@ threadmain(int argc, char *argv[]) if(argc != 0) usage(); + rfork(RFNOTEG); + if(trysecstore && havesecstore()){ while(secstorefetch() < 0){ rerrstr(err, sizeof err); |