summaryrefslogtreecommitdiff
path: root/src/info.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-06-05 09:32:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2019-06-05 09:32:29 +0300
commitc3a93a4aa588f237690953fc74011c3bd00ed2ae (patch)
treef2d2921dc12fda6f399fe0d7233b6477a1774fda /src/info.c
parentb0be9f610c02bb2d5e681a3904940d311e9de298 (diff)
downloadapk-tools-c3a93a4aa588f237690953fc74011c3bd00ed2ae.tar.gz
apk-tools-c3a93a4aa588f237690953fc74011c3bd00ed2ae.tar.bz2
apk-tools-c3a93a4aa588f237690953fc74011c3bd00ed2ae.tar.xz
apk-tools-c3a93a4aa588f237690953fc74011c3bd00ed2ae.zip
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.
Diffstat (limited to 'src/info.c')
-rw-r--r--src/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info.c b/src/info.c
index ff79eaa..9a37e1e 100644
--- a/src/info.c
+++ b/src/info.c
@@ -416,7 +416,7 @@ static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int op
ctx->subaction_mask = 0xffffffff;
break;
default:
- return -1;
+ return -ENOTSUP;
}
return 0;
}