From 820c34adbf5e5fe21987b9437e9a982f013f2133 Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Mon, 20 Dec 2010 11:23:18 -0200 Subject: [PATCH] scripts: signGP: properly returning 1 in case of errors Signed-off-by: Ricardo Salveti de Araujo Acked-by: Nishanth Menon --- scripts/signGP.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/signGP.c b/scripts/signGP.c index d3cb5f7..963a937 100644 --- a/scripts/signGP.c +++ b/scripts/signGP.c @@ -263,7 +263,7 @@ int main(int argc, char *argv[]) ifile = fopen(ifname, "rb"); if (ifile == NULL) { printf("Cannot open %s\n", ifname); - exit(0); + return 1; } /* Get file length. */ @@ -275,7 +275,7 @@ int main(int argc, char *argv[]) if (ofile == NULL) { printf("Cannot open %s\n", ofname); fclose(ifile); - exit(0); + return 1; } /* Pad 1 sector of zeroes. */ -- 2.39.5