mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -823,7 +823,7 @@ const struct options_table_entry options_table[] = {
 | 
			
		||||
	  .type = OPTIONS_TABLE_STRING,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_SESSION,
 | 
			
		||||
	  .flags = OPTIONS_TABLE_IS_ARRAY,
 | 
			
		||||
	  .default_str = "DISPLAY KRB5CCNAME SSH_ASKPASS SSH_AUTH_SOCK "
 | 
			
		||||
	  .default_str = "DISPLAY KRB5CCNAME MSYSTEM SSH_ASKPASS SSH_AUTH_SOCK "
 | 
			
		||||
			 "SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY",
 | 
			
		||||
	  .text = "List of environment variables to update in the session "
 | 
			
		||||
		  "environment when a client is attached."
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tmux.c
									
									
									
									
									
								
							@@ -222,7 +222,7 @@ make_label(const char *label, char **cause)
 | 
			
		||||
		xasprintf(cause, "%s is not a directory", base);
 | 
			
		||||
		goto fail;
 | 
			
		||||
	}
 | 
			
		||||
	if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {
 | 
			
		||||
	if (sb.st_uid != uid || (sb.st_mode & TMUX_SOCK_PERM) != 0) {
 | 
			
		||||
		xasprintf(cause, "directory %s has unsafe permissions", base);
 | 
			
		||||
		goto fail;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user