*/
static void
-split_command(const unsigned char *cmd_line, char **command, char **params)
+split_command(const char *cmd_line, char **command, char **params)
{
- const unsigned char *p, *cmd_start;
+ const char *p, *cmd_start;
char delim;
char *str;
unsigned len;
static int
has_path(const char *path)
{
- if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL)
- return 0;
-
- return 1;
+ return dbuf_splitPath(path, NULL, NULL);
}
}
e = system(cmdLine);
+
+ if (options.verboseExec && e) {
+ printf("+ %s returned errorcode %d\n", cmdLine, e);
+ }
+
Safe_free(cmdLine);
return e;