mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Bug fix: $TMUX wasn't being reused properly
This commit is contained in:
parent
16dd13979e
commit
53355a0b92
2
tmux.c
2
tmux.c
@ -394,11 +394,13 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -L or default set. */
|
/* -L or default set. */
|
||||||
|
if (!path) {
|
||||||
if ((path = makesocketpath(label)) == NULL) {
|
if ((path = makesocketpath(label)) == NULL) {
|
||||||
fprintf(stderr, "can't create socket\n");
|
fprintf(stderr, "can't create socket\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
free(label);
|
free(label);
|
||||||
strlcpy(socket_path, path, sizeof socket_path);
|
strlcpy(socket_path, path, sizeof socket_path);
|
||||||
free(path);
|
free(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user