/*!
- * check if the path is absolute
+ * check if the path is relative or absolute (if contains the dir separator)
*/
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;