mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	asterisk.c: Don't log an error if .asterisk_history does not exist.
Fixes #751
(cherry picked from commit e9fb27f804)
			
			
This commit is contained in:
		
				
					committed by
					
						
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							823c948842
						
					
				
				
					commit
					877d5ff577
				
			@@ -3182,7 +3182,12 @@ static int ast_el_read_history(const char *filename)
 | 
				
			|||||||
		ast_el_initialize();
 | 
							ast_el_initialize();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return history(el_hist, &ev, H_LOAD, filename);
 | 
						if (access(filename, F_OK) == 0) {
 | 
				
			||||||
 | 
							return history(el_hist, &ev, H_LOAD, filename);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/* If the history file doesn't exist, failing to read it is unremarkable. */
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void process_histfile(int (*readwrite)(const char *filename))
 | 
					static void process_histfile(int (*readwrite)(const char *filename))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user