* Resolves the executable path from current program's directory and name. * * Returns 0 on success, -1 on failure. */
| 157 | * Returns 0 on success, -1 on failure. |
| 158 | */ |
| 159 | static int git_get_exec_path_zos(struct strbuf *buf) |
| 160 | { |
| 161 | char *dir = __getprogramdir(); |
| 162 | char *exe = getprogname(); |
| 163 | if (dir && exe) { |
| 164 | strbuf_addf(buf, "%s/%s", dir, exe); |
| 165 | return 0; |
| 166 | } |
| 167 | return -1; |
| 168 | } |
| 169 | |
| 170 | #endif /* HAVE_ZOS_GET_EXECUTABLE_PATH */ |
| 171 |