History

otf fix, caution to wind reenable

Ge Wang committed 9 years ago

Commit e060f611 parent 6fe13cf5 files · +16 −11Browse files

Showing the changes to src/core/ulib_std.cpp (1 of 5 files). Show all

Unified · Split

src/core/ulib_std.cpp+2−3
@@ -38,6 +38,7 @@ · 37 unmodified lines
3838 #include "util_math.h"
3939 #include "util_string.h"
4040 #include "util_thread.h"
41+#include "chuck.h"
4142 #include "chuck_type.h"
4243 #include "chuck_compile.h"
4344 #include "chuck_instr.h"
@@ -661,8 +662,7 @@ CK_DLL_SFUN( system_impl ) · 617 unmodified lines
661662 const char * cmd = GET_CK_STRING(ARGS)->str().c_str();
662663
663664 // check globals for permission
664−// REFACTOR-2017: TODO reenable --caution-to-the-wind?
665−/* if( !g_enable_system_cmd )
665+ if( !ChucK::enableSystemCall )
666666 {
667667 CK_FPRINTF_STDERR( "[chuck]:error: VM not authorized to call Std.system( string )...\n" );
668668 CK_FPRINTF_STDERR( "[chuck]: (command string was: \"%s\")\n", cmd );
@@ -670,7 +670,6 @@ CK_DLL_SFUN( system_impl ) · 1 unmodified line
670670 RETURN->v_int = 0;
671671 }
672672 else
673−*/
674673 {
675674 // log
676675 EM_log( CK_LOG_SEVERE, "invoking system( CMD )..." );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t