From a032bc56cce59b685eb1f53d9cf997c85cf8f931 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 19 Jun 2023 19:05:18 -0400 Subject: main: Report failure to read specials file --- (limited to 'src') diff --git a/src/main.c b/src/main.c index 9f61efc..6777f08 100644 --- a/src/main.c +++ b/src/main.c @@ -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) { -- cgit v0.9.1