added missing CAP_COMMANDLINE guards, and other fixes for non-CAP_COMMANDLINE

This commit is contained in:
Zeno Rogue committed 2021-06-01 13:07:55 +02:00
1 parent 83070fe50c
commit 334bf12292
4 files changed
+9 -5

No files matched your search

+2
View File
@@ -238,6 +238,7 @@ EX modecode_t legacy_modecode() {
return mct;
}
#if CAP_COMMANDLINE
/* legacy options */
int read_legacy_args() {
using namespace arg;
@@ -272,6 +273,7 @@ int read_legacy_args() {
}
auto ah_legacy = addHook(hooks_args, 0, read_legacy_args);
#endif
}