mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Instead of bailing out on the first configuration file error, carry on,
collecting all the errors, then start with the active window in more mode displaying them.
This commit is contained in:
		
							
								
								
									
										7
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								tmux.c
									
									
									
									
									
								
							@@ -432,15 +432,10 @@ main(int argc, char **argv)
 | 
			
		||||
				home = pw->pw_dir;
 | 
			
		||||
		}
 | 
			
		||||
		xasprintf(&cfg_file, "%s/%s", home, DEFAULT_CFG);
 | 
			
		||||
		if (access(cfg_file, R_OK) != 0) {
 | 
			
		||||
		if (access(cfg_file, R_OK) != 0 && errno == ENOENT) {
 | 
			
		||||
			xfree(cfg_file);
 | 
			
		||||
			cfg_file = NULL;
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		if (access(cfg_file, R_OK) != 0) {
 | 
			
		||||
			log_warn("%s", cfg_file);
 | 
			
		||||
			exit(1);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user