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:
@@ -85,6 +85,10 @@
|
||||
+ Added feature #800, adding a new command 'columns' that lists all the columns
|
||||
available for custom reports, and includes their formatting options (thanks
|
||||
to T. Charles Yun).
|
||||
+ 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.
|
||||
|
||||
# Tracked Bugs, sorted by ID.
|
||||
+ Fixed bug #403, which disambiguates certain commands involving numbers.
|
||||
|
||||
@@ -57,3 +57,5 @@ Override PACKAGE_LANGUAGE, then
|
||||
#cmakedefine HAVE_UUID
|
||||
#cmakedefine HAVE_UUID_UNPARSE_LOWER
|
||||
|
||||
#define HAVE_EXECUTE 1
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user