Use lstat. No change yet due to realpath call in tmux.c.

This commit is contained in:
Nicholas Marriott 2009-03-27 08:58:28 +00:00
parent 52fb9ca250
commit 0cb069a6b1

View File

@ -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;