git-2.22.0/exec-cmd.c
/*
 * Resolves the executable path by examining a procfs symlink.
 *
 * Returns 0 on success, -1 on failure.
 */
Resolves the executable path by examining a procfs symlink.
Returns 0 on success, -1 on failure.
Resolves the executable path by examining a procfs symlink . Returns 0 on success - 1 on failure .
static int git_get_exec_path_procfs(struct strbuf *buf)
{
	if (strbuf_realpath(buf, PROCFS_EXECUTABLE_PATH, 0)) {
		trace_printf(
			"trace: resolved executable path from procfs: %s\n",
			buf->buf);
		return 0;
	}
	return -1;
}
static int git_get_exec_path_procfs ( struct strbuf * buf ) { if ( strbuf_realpath ( buf , PROCFS_EXECUTABLE_PATH , 0 ) ) { trace_printf ( " \n " , buf -> buf ) ; return 0 ; } return -1 ; }
Resolves the executable path by examining a procfs symlink.
Resolves the executable path by examining a procfs symlink .