Author: stefanct
Date: Tue Jul 19 09:58:06 2011
New Revision: 1374
URL: http://flashrom.org/trac/flashrom/changeset/1374

Log:
fix a bug breaking layout file handling in r1373

Florian Zumbiehl discovered that we have broken the -i switch in the
last commit resulting in self-contradictory output:
http://paste.flashrom.org/view.php?id=707

Signed-off-by: Stefan Tauner <[email protected]>
Acked-by: Carl-Daniel Hailfinger <[email protected]>

Modified:
   trunk/cli_classic.c

Modified: trunk/cli_classic.c
==============================================================================
--- trunk/cli_classic.c Sat Jul 16 01:47:45 2011        (r1373)
+++ trunk/cli_classic.c Tue Jul 19 09:58:06 2011        (r1374)
@@ -235,7 +235,7 @@
                case 'i':
                        /* FIXME: -l has to be specified before -i. */
                        tempstr = strdup(optarg);
-                       if (find_romentry(tempstr)) {
+                       if (find_romentry(tempstr) < 0) {
                                fprintf(stderr, "Error: image %s not found in "
                                        "layout file or -i specified before "
                                        "-l\n", tempstr);

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to