mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature #811
- Added feature #811, which makes the 'execute' command optional, and controlled by '#define HAVE_EXECUTE 1' in cmake.h. This allows a build that does not have the potential security hole, in the event that taskwarrior is run at elevated privilege, or run in the context of a web server.
This commit is contained in:
parent
2460502be8
commit
40a71e2aae
3 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
#include <text.h>
|
||||
#include <i18n.h>
|
||||
#include <Command.h>
|
||||
#include <cmake.h>
|
||||
|
||||
#include <CmdAdd.h>
|
||||
#include <CmdAnnotate.h>
|
||||
|
@ -54,7 +55,9 @@
|
|||
#include <CmdDone.h>
|
||||
#include <CmdDuplicate.h>
|
||||
#include <CmdEdit.h>
|
||||
#ifdef HAVE_EXECUTE
|
||||
#include <CmdExec.h>
|
||||
#endif
|
||||
#include <CmdExport.h>
|
||||
#include <CmdHelp.h>
|
||||
#include <CmdHistory.h>
|
||||
|
@ -119,7 +122,9 @@ void Command::factory (std::map <std::string, Command*>& all)
|
|||
c = new CmdDone (); all[c->keyword ()] = c;
|
||||
c = new CmdDuplicate (); all[c->keyword ()] = c;
|
||||
c = new CmdEdit (); all[c->keyword ()] = c;
|
||||
#ifdef HAVE_EXECUTE
|
||||
c = new CmdExec (); all[c->keyword ()] = c;
|
||||
#endif
|
||||
c = new CmdExport (); all[c->keyword ()] = c;
|
||||
c = new CmdGHistoryMonthly (); all[c->keyword ()] = c;
|
||||
c = new CmdGHistoryAnnual (); all[c->keyword ()] = c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue