% ape/diff -p proto.c /n/dump/2020/0331/usr/lucio/Project/git9-master/proto.c *** proto.c Tue Mar 31 09:22:50 2020 --- /n/dump/2020/0331/usr/lucio/Project/git9-master/proto.c Mon Mar 23 15:57:59 2020 *************** *** 1,6 **** #include #include - #include #include "git.h" --- 1,5 ---- *************** dialhttp(Conn *c, char *host, char *port *** 232,241 **** } int ! dialssh(Conn *c, char *host, char *port, char *path, char *direction) { int pid, pfd[2]; ! char *target, cmd[64]; if(pipe(pfd) == -1) sysfatal("unable to open pipe: %r"); --- 231,240 ---- } int ! dialssh(Conn *c, char *host, char *, char *path, char *direction) { int pid, pfd[2]; ! char cmd[64]; if(pipe(pfd) == -1) sysfatal("unable to open pipe: %r"); *************** dialssh(Conn *c, char *host, char *port, *** 247,257 **** dup(pfd[0], 0); dup(pfd[0], 1); snprint(cmd, sizeof(cmd), "git-%s-pack", direction); - if (port != nil) { - target = (char *) malloc(strlen(host) + 1 + strlen(port) + 1); - sprintf(target, "%s:%s", host, port); - host = target; - } if(chattygit) fprint(2, "exec ssh %s %s %s\n", host, cmd, path); execl("/bin/ssh", "ssh", host, cmd, path, nil); --- 246,251 ----