mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use lstat. No change yet due to realpath call in tmux.c.
This commit is contained in:
		
							
								
								
									
										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>
 | 
			
		||||
@@ -48,7 +48,7 @@ client_init(
 | 
			
		||||
	struct buffer		       *b;
 | 
			
		||||
	char			       *name;
 | 
			
		||||
 | 
			
		||||
	if (stat(path, &sb) != 0) {
 | 
			
		||||
	if (lstat(path, &sb) != 0) {
 | 
			
		||||
		if (start_server && errno == ENOENT) {
 | 
			
		||||
			if ((cctx->srv_fd = server_start(path)) == -1)
 | 
			
		||||
				goto start_failed;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user