@@ -45,7 +45,7 @@ static bool is_buffer_available(size_t buf_len, size_t max_size, char* script) {
4545 return true;
4646}
4747
48- static bool exec_process (uv_loop_t * ziti_loop , const char * program , const char * args []) {
48+ static bool exec_process (uv_loop_t * ziti_loop , const char * program , char * args []) {
4949 uv_process_t * process = calloc (1 , sizeof (uv_process_t ));
5050 uv_process_options_t options = {0 };
5151 uv_stdio_container_t stdio [3 ];
@@ -169,7 +169,7 @@ void chunked_add_nrpt_rules(uv_loop_t *ziti_loop, hostname_list_t *hostnames, co
169169
170170 ZITI_LOG (DEBUG , "Executing Add domains NRPT script :" );
171171 ZITI_LOG (DEBUG , "%s" , cmd );
172- const char * args [] = {"powershell" , "-Command" , script , NULL };
172+ char * args [] = {"powershell" , "-Command" , script , NULL };
173173 bool result = exec_process (ziti_loop , args [0 ], args );
174174 if (!result ) {
175175 ZITI_LOG (WARN , "Add domains NRPT script: %d(err=%lu)" , result , GetLastError ());
@@ -260,7 +260,7 @@ void chunked_remove_nrpt_rules(uv_loop_t *ziti_loop, hostname_list_t *hostnames)
260260
261261 ZITI_LOG (DEBUG , "Executing Remove domains NRPT script: " );
262262 ZITI_LOG (DEBUG , "%s" , cmd );
263- const char * args [] = {"powershell" , "-Command" , script , NULL };
263+ char * args [] = {"powershell" , "-Command" , script , NULL };
264264 bool result = exec_process (ziti_loop , args [0 ], args );
265265 if (!result ) {
266266 ZITI_LOG (WARN , "Remove domains NRPT script: %d(err=%lu)" , result , GetLastError ());
@@ -403,7 +403,7 @@ void chunked_remove_and_add_nrpt_rules(uv_loop_t *ziti_loop, hostname_list_t *ho
403403
404404 ZITI_LOG (DEBUG , "Executing Remove and add domains NRPT script: " );
405405 ZITI_LOG (DEBUG , "%s" , cmd );
406- const char * args [] = {"powershell" , "-Command" , script , NULL };
406+ char * args [] = {"powershell" , "-Command" , script , NULL };
407407 bool result = exec_process (ziti_loop , args [0 ], args );
408408 if (!result ) {
409409 ZITI_LOG (WARN , "Remove and add domains NRPT script: %d(err=%lu)" , result , GetLastError ());
@@ -512,7 +512,7 @@ void update_interface_metric(uv_loop_t *ziti_loop, const char *tun_name, int met
512512
513513 ZITI_LOG (DEBUG , "Executing Update Interface metric script :" );
514514 ZITI_LOG (DEBUG , "%s" , cmd );
515- const char * args [] = {"powershell" , "-Command" , script , NULL };
515+ char * args [] = {"powershell" , "-Command" , script , NULL };
516516 bool result = exec_process (ziti_loop , args [0 ], args );
517517 if (!result ) {
518518 ZITI_LOG (WARN , "Update Interface metric script: %d(err=%lu)" , result , GetLastError ());
0 commit comments