summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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) {