mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
This commit is contained in:
		
							
								
								
									
										7
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								tmux.c
									
									
									
									
									
								
							@@ -22,6 +22,7 @@
 | 
			
		||||
#include <errno.h>
 | 
			
		||||
#include <event.h>
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
#include <getopt.h>
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
#include <pwd.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
@@ -45,7 +46,7 @@ char		*cfg_file;
 | 
			
		||||
char		*shell_cmd;
 | 
			
		||||
int		 debug_level;
 | 
			
		||||
time_t		 start_time;
 | 
			
		||||
char		 socket_path[MAXPATHLEN];
 | 
			
		||||
char		 socket_path[PATH_MAX];
 | 
			
		||||
int		 login_shell;
 | 
			
		||||
char		*environ_path;
 | 
			
		||||
 | 
			
		||||
@@ -127,7 +128,7 @@ areshell(const char *shell)
 | 
			
		||||
char *
 | 
			
		||||
makesocketpath(const char *label)
 | 
			
		||||
{
 | 
			
		||||
	char		base[MAXPATHLEN], realbase[MAXPATHLEN], *path, *s;
 | 
			
		||||
	char		base[PATH_MAX], realbase[PATH_MAX], *path, *s;
 | 
			
		||||
	struct stat	sb;
 | 
			
		||||
	u_int		uid;
 | 
			
		||||
 | 
			
		||||
@@ -205,7 +206,7 @@ int
 | 
			
		||||
main(int argc, char **argv)
 | 
			
		||||
{
 | 
			
		||||
	struct passwd	*pw;
 | 
			
		||||
	char		*s, *path, *label, **var, tmp[MAXPATHLEN];
 | 
			
		||||
	char		*s, *path, *label, **var, tmp[PATH_MAX];
 | 
			
		||||
	char		 in[256];
 | 
			
		||||
	const char	*home;
 | 
			
		||||
	long long	 pid;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user