From 1a30d50ad8ff0fa304c9f858e6e0510ce8cbe93a Mon Sep 17 00:00:00 2001 From: Stefan Tauner 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 Corresponding to flashrom svn r1374. Signed-off-by: Stefan Tauner Acked-by: Carl-Daniel Hailfinger --- 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.1