X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2FUtil%2FMySystem.c;h=6aec20f98e91b338e1592926bab4441e115cfcec;hb=d68ded6371633fe092e01a10c55d47022d3b32b8;hp=b78d99aac17b20736a6e3eda39af189a3cfd3fe8;hpb=90bdb43b342189fcb94a398855d43f3f47f96738;p=fw%2Fsdcc diff --git a/support/Util/MySystem.c b/support/Util/MySystem.c index b78d99aa..6aec20f9 100644 --- a/support/Util/MySystem.c +++ b/support/Util/MySystem.c @@ -249,10 +249,7 @@ merge_command(const char *command, const char *params) static int has_path(const char *path) { - if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL) - return 0; - - return 1; + return dbuf_splitPath(path, NULL, NULL); } @@ -324,6 +321,11 @@ my_system(const char *cmd) } e = system(cmdLine); + + if (options.verboseExec && e) { + printf("+ %s returned errorcode %d\n", cmdLine, e); + } + Safe_free(cmdLine); return e;