From 12e15b0ac800a84d553ff82c4c61ccc8da9fd5fd Mon Sep 17 00:00:00 2001 From: James Peach Date: Thu, 18 Mar 2010 21:25:17 -0700 Subject: smbtorture: Add history support to shell mode. --- source4/torture/smbtorture.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source4/torture/smbtorture.c') diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index 848773ee8a..c1d32a769d 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -33,6 +33,9 @@ #include "auth/gensec/gensec.h" #include "param/param.h" +#if HAVE_READLINE_HISTORY_H +#include +#endif static bool run_matching(struct torture_context *torture, const char *prefix, @@ -386,7 +389,11 @@ static void run_shell(struct torture_context *tctx) if (cline == NULL) return; - + +#if HAVE_ADD_HISTORY + add_history(cline); +#endif + ret = poptParseArgvString(cline, &argc, &argv); if (ret != 0) { fprintf(stderr, "Error parsing line\n"); -- cgit