|
|
@ -3182,9 +3182,14 @@ static int ast_el_read_history(const char *filename)
|
|
|
|
ast_el_initialize();
|
|
|
|
ast_el_initialize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (access(filename, F_OK) == 0) {
|
|
|
|
return history(el_hist, &ev, H_LOAD, filename);
|
|
|
|
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))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct passwd *pw = getpwuid(geteuid());
|
|
|
|
struct passwd *pw = getpwuid(geteuid());
|
|
|
|