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