From 1f0163a185eb19a0eb52ede02658e421628c7b62 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 17 Mar 2010 17:52:54 +0100 Subject: Skip ACL prompt when bailing out due to lack of cells --- src/dirax.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dirax.c b/src/dirax.c index 5e3391ec..515a203b 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -192,7 +192,11 @@ static void dirax_send_next(struct image *image) case 8 : if ( image->best_acl_nh == 0 ) { STATUS("No more cells to try.\n"); - dirax_sendline("exit\n", image); + /* At this point, DirAx is presenting its ACL prompt + * and waiting for a single number. Use an extra + * newline to choose automatic ACL selection before + * exiting. */ + dirax_sendline("\nexit\n", image); break; } snprintf(tmp, 31, "%i\n", image->best_acl); -- cgit v1.2.3