From e52aa4f6f394caa8bfae8f4a269e15ed60d6c558 Mon Sep 17 00:00:00 2001 From: stefanct Date: Tue, 19 Jul 2011 07:58:06 +0000 Subject: 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 Acked-by: Carl-Daniel Hailfinger git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1374 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- cli_classic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli_classic.c') 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); -- cgit v1.2.1