summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-07-19 07:58:06 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-07-19 07:58:06 +0000
commite52aa4f6f394caa8bfae8f4a269e15ed60d6c558 (patch)
tree202c7c7cf3d6e4057675ea82083199d63d6c8b75 /cli_classic.c
parentc98298ba57f8e88872555331dc69e0d49135d3cf (diff)
downloadflashrom-e52aa4f6f394caa8bfae8f4a269e15ed60d6c558.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 Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1374 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-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);