Showing the changes to src/core/ulib_std.cpp (1 of 5 files). Show all
Unified · Split
| @@ -38,6 +38,7 @@ · 37 unmodified lines | ||
| 38 | 38 | #include "util_math.h" |
| 39 | 39 | #include "util_string.h" |
| 40 | 40 | #include "util_thread.h" |
| 41 | +#include "chuck.h" | |
| 41 | 42 | #include "chuck_type.h" |
| 42 | 43 | #include "chuck_compile.h" |
| 43 | 44 | #include "chuck_instr.h" |
| @@ -661,8 +662,7 @@ CK_DLL_SFUN( system_impl ) · 617 unmodified lines | ||
| 661 | 662 | const char * cmd = GET_CK_STRING(ARGS)->str().c_str(); |
| 662 | 663 | |
| 663 | 664 | // check globals for permission |
| 664 | −// REFACTOR-2017: TODO reenable --caution-to-the-wind? | |
| 665 | −/* if( !g_enable_system_cmd ) | |
| 665 | + if( !ChucK::enableSystemCall ) | |
| 666 | 666 | { |
| 667 | 667 | CK_FPRINTF_STDERR( "[chuck]:error: VM not authorized to call Std.system( string )...\n" ); |
| 668 | 668 | CK_FPRINTF_STDERR( "[chuck]: (command string was: \"%s\")\n", cmd ); |
| @@ -670,7 +670,6 @@ CK_DLL_SFUN( system_impl ) · 1 unmodified line | ||
| 670 | 670 | RETURN->v_int = 0; |
| 671 | 671 | } |
| 672 | 672 | else |
| 673 | −*/ | |
| 674 | 673 | { |
| 675 | 674 | // log |
| 676 | 675 | EM_log( CK_LOG_SEVERE, "invoking system( CMD )..." ); |