diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-06-19 19:05:18 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-06-19 19:05:18 (EDT) |
commit | a032bc56cce59b685eb1f53d9cf997c85cf8f931 (patch) | |
tree | bad810e7271dc334146af8931a579b1fc22333ae /src | |
parent | 4fe83854fc6baec0273863671ed8ee66308fcab8 (diff) |
main: Report failure to read specials file
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -264,7 +264,15 @@ main(int argc, char *argv[]) opkg_opk_opk_data_dir(opk, optarg); break; case 's': - opkg_opk_opk_specials_read(opk, optarg); + if (opkg_opk_opk_specials_read(opk, optarg) != + OPKG_OPK_OK) { + fprintf(stderr, _("%s: Failed to read " + "specials file" + "\n"), + program_name); + opkg_opk_opk_free(opk); + return EXIT_FAILURE; + } break; case 'f': if (opt_l > 0) { |