* sqlippool now re-allocates unexpired leases, to prevent IP pool
exhaustion when clients perform multiple reauthentication attempts.
Patch from Terry Burton.
+ * Add support to radmin keep the history in ~/.radmin_history
Bug fixes
* Allow listen.ipaddr to reference an IPv6-only host. Fixes #2627.
# include <sys/stat.h>
#endif
+#ifndef READLINE_MAX_HISTORY_LINES
+# define READLINE_MAX_HISTORY_LINES 1000
+#endif
+
#ifdef HAVE_LIBREADLINE
# include <stdio.h>
char const *radius_dir = RADIUS_DIR;
char const *dict_dir = DICTDIR;
+ char history_file[PATH_MAX];
char *commands[MAX_COMMANDS];
int num_commands = -1;
if (!quiet) {
#ifdef USE_READLINE_HISTORY
using_history();
+ stifle_history(READLINE_MAX_HISTORY_LINES);
+
+ snprintf(history_file, sizeof(history_file), "%s/%s", getenv("HOME"), ".radmin_history");
+ read_history(history_file);
#endif
rl_bind_key('\t', rl_insert);
}
#ifdef USE_READLINE_HISTORY
add_history(line);
+ write_history(history_file);
#endif
} else /* quiet, or no readline */
#endif