From c3a93a4aa588f237690953fc74011c3bd00ed2ae Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 5 Jun 2019 09:32:29 +0300 Subject: fix all applets to return -ENOTSUP if it's unrecognized The return -1 seems to have been left over from earlier code, and could have been treated as -EPERM. This helps to fix the other command line handling that potentially require changing. --- src/upgrade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upgrade.c') diff --git a/src/upgrade.c b/src/upgrade.c index 14457b5..6c3eafa 100644 --- a/src/upgrade.c +++ b/src/upgrade.c @@ -42,7 +42,7 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt uctx->solver_flags |= APK_SOLVERF_LATEST; break; default: - return -1; + return -ENOTSUP; } return 0; } -- cgit v1.2.3-60-g2f50