summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick 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)
commita032bc56cce59b685eb1f53d9cf997c85cf8f931 (patch)
treebad810e7271dc334146af8931a579b1fc22333ae /src
parent4fe83854fc6baec0273863671ed8ee66308fcab8 (diff)
main: Report failure to read specials file
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 9 insertions, 1 deletions
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) {