common: if backend_cmd fails, abort cleanly instead of possibly trying

to print.
This commit is contained in:
Solomon Peachy 2014-02-11 22:33:10 -05:00
parent db099ec35b
commit b8242fe847

View file

@ -796,7 +796,8 @@ int main (int argc, char **argv)
backend->attach(backend_ctx, dev, endp_up, endp_down, jobid);
if (backend_cmd && !uri) {
backend->cmdline_arg(backend_ctx, argc, argv);
if (backend->cmdline_arg(backend_ctx, argc, argv))
goto done_claimed;
if (!fname)
goto done_claimed;
}