mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +01:00
Use lstat. No change yet due to realpath call in tmux.c.
This commit is contained in:
parent
52fb9ca250
commit
0cb069a6b1
4
client.c
4
client.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: client.c,v 1.43 2009-02-08 16:11:26 nicm Exp $ */
|
/* $Id: client.c,v 1.44 2009-03-27 08:58:28 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -48,7 +48,7 @@ client_init(
|
|||||||
struct buffer *b;
|
struct buffer *b;
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
if (stat(path, &sb) != 0) {
|
if (lstat(path, &sb) != 0) {
|
||||||
if (start_server && errno == ENOENT) {
|
if (start_server && errno == ENOENT) {
|
||||||
if ((cctx->srv_fd = server_start(path)) == -1)
|
if ((cctx->srv_fd = server_start(path)) == -1)
|
||||||
goto start_failed;
|
goto start_failed;
|
||||||
|
Loading…
Reference in New Issue
Block a user