secstore: fix wrong "readnvram %r" error status

This commit is contained in:
cinap_lenrek 2014-04-18 20:41:43 +02:00
parent 9204ed8910
commit 6a7ba3d24a

View file

@ -389,8 +389,10 @@ login(char *id, char *dest, int pass_stdin, int pass_nvram)
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){