* Resolves the executable path by examining a procfs symlink. * * Returns 0 on success, -1 on failure. */
| 91 | * Returns 0 on success, -1 on failure. |
| 92 | */ |
| 93 | static int git_get_exec_path_procfs(struct strbuf *buf) |
| 94 | { |
| 95 | if (strbuf_realpath(buf, PROCFS_EXECUTABLE_PATH, 0)) { |
| 96 | trace_printf( |
| 97 | "trace: resolved executable path from procfs: %s\n", |
| 98 | buf->buf); |
| 99 | return 0; |
| 100 | } |
| 101 | return -1; |
| 102 | } |
| 103 | #endif /* PROCFS_EXECUTABLE_PATH */ |
| 104 | |
| 105 | #ifdef HAVE_BSD_KERN_PROC_SYSCTL |
no test coverage detected