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
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 permission664 // 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 else672 else
673*/
674 {673 {
675 // log674 // log
676 EM_log( CK_LOG_SEVERE, "invoking system( CMD )..." );675 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