ref: 6a7ba3d24a20b88bc28776eb489a2dc876e5b4eb
parent: 9204ed8910fd0ddf7186c154a650586674fec641
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Apr 18 16:41:43 EDT 2014
secstore: fix wrong "readnvram %r" error status
--- a/sys/src/cmd/auth/secstore/secstore.c
+++ b/sys/src/cmd/auth/secstore/secstore.c
@@ -389,8 +389,10 @@
sysfatal("tried to login with nil dest");
c = emalloc(sizeof(*c));
if(pass_nvram){
- if(readnvram(&nvr, 0) < 0)
- exits("readnvram: %r");
+ if(readnvram(&nvr, 0) < 0){
+ fprint(2, "secstore: readnvram: %r\n");
+ exits("readnvram failed");
+ }
strecpy(c->pass, c->pass+sizeof c->pass, nvr.config);
}
if(pass_stdin){