51,8 → 51,9 |
#include "exec.h" |
#include "errors.h" |
|
/* Easiest way to handle a shared + allocated string, a structure with |
* one member is sort of silly :) */ |
/* TODO: create exec, exev, execve wrappers for task_spawn() */ |
|
/* Easiest way to handle a shared + allocated string */ |
char *found; |
|
/* work-around for access() */ |
141,6 → 142,9 |
tmp = cli_strdup(find_command(cmd)); |
free(found); |
|
/* TODO: put the cwd in front of tmp if tmp[0] != root |
* which fixes relative paths fed to task_spawn */ |
|
tid = task_spawn((const char *)tmp, (const char **)argv); |
free(tmp); |
|