summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-07-19 07:58:06 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-07-19 07:58:06 +0000
commit1a30d50ad8ff0fa304c9f858e6e0510ce8cbe93a (patch)
tree202c7c7cf3d6e4057675ea82083199d63d6c8b75
parentd5660141ec26bad821c90596a0f0b3db7fa35971 (diff)
downloadast2050-flashrom-1a30d50ad8ff0fa304c9f858e6e0510ce8cbe93a.zip
ast2050-flashrom-1a30d50ad8ff0fa304c9f858e6e0510ce8cbe93a.tar.gz
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 Corresponding to flashrom svn r1374. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r--cli_classic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_classic.c b/cli_classic.c
index 9168bc1..53cd4a0 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -235,7 +235,7 @@ int cli_classic(int argc, char *argv[])
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);
OpenPOWER on IntegriCloud