From: Ricardo Salveti de Araujo Date: Mon, 20 Dec 2010 13:23:18 +0000 (-0200) Subject: scripts: signGP: properly returning 1 in case of errors X-Git-Tag: v1.5.0~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=820c34adbf5e5fe21987b9437e9a982f013f2133;p=pandora-x-loader.git scripts: signGP: properly returning 1 in case of errors Signed-off-by: Ricardo Salveti de Araujo Acked-by: Nishanth Menon --- 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. */