aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-17 17:52:54 +0100
committerThomas White <taw@physics.org>2010-03-17 17:52:54 +0100
commit1f0163a185eb19a0eb52ede02658e421628c7b62 (patch)
tree12c292d46a6999fc315279b360c8decc1f5b220b /src
parentd1142736c4b537ec958374e9071fad54516dbca0 (diff)
Skip ACL prompt when bailing out due to lack of cells
Diffstat (limited to 'src')
-rw-r--r--src/dirax.c6
1 files changed, 5 insertions, 1 deletions
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);