I just found this bug.
$ cat /tmp/test.jtag
quit
$ ./jtag /tmp/test.jtag
Unable to open file `/tmp/test.jtag'!
I'm committing this patch to fix it.
Jie
* src/apps/jtag/jtag.c (main): Don't trigger open file error
if the last command is "quit".
diff --git a/src/apps/jtag/jtag.c b/src/apps/jtag/jtag.c
index 339e999..fe53065 100644
--- a/src/apps/jtag/jtag.c
+++ b/src/apps/jtag/jtag.c
@@ -488,7 +488,7 @@ main (int argc, char *const argv[])
go = urj_parse_file (URJ_LOG_LEVEL_NORMAL, chain, argv[i]);
cleanup (chain);
- if (go < 0)
+ if (go < 0 && go != URJ_STATUS_MUST_QUIT)
{
printf (_("Unable to open file `%s'!\n"), argv[i]);
break;
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development