21 lines
628 B
Diff
21 lines
628 B
Diff
Index: sbsigntool/src/sbsign.c
|
|
===================================================================
|
|
--- sbsigntool.orig/src/sbsign.c
|
|
+++ sbsigntool/src/sbsign.c
|
|
@@ -242,12 +242,12 @@ int main(int argc, char **argv)
|
|
|
|
for (i = 0; !image_get_signature(ctx->image, i, &buf, &len); i++)
|
|
;
|
|
- image_write_detached(ctx->image, i - 1, ctx->outfilename);
|
|
+ rc = image_write_detached(ctx->image, i - 1, ctx->outfilename);
|
|
} else
|
|
- image_write(ctx->image, ctx->outfilename);
|
|
+ rc = image_write(ctx->image, ctx->outfilename);
|
|
|
|
talloc_free(ctx);
|
|
|
|
- return EXIT_SUCCESS;
|
|
+ return (rc == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
}
|
|
|