From 478b025c43f62c0736ad05fde38d9936d62fb17a Mon Sep 17 00:00:00 2001
From: Gedare Bloom <gedare@rtems.org>
Date: Fri, 11 Apr 2014 15:59:04 -0400
Subject: [PATCH] PR1828: Parameter 'forever' is ignored with login function
When selected login function in the shell, after repeated incorrect passwords,
shell will out, even when the 'forever' flag is set.
See cpukit/libmisc/shell/shell.c function rtems_shell_main_loop. After
incorrect login, variable 'result' has false value, and while loop is exited.
Changing the condition to boolean-OR the result with the forever flag
permits invalid login attempts to be repeated.
---
cpukit/libmisc/shell/shell.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index 8666299..3126b1f 100644
a
|
b
|
bool rtems_shell_main_loop( |
912 | 912 | fflush( stdout ); |
913 | 913 | fflush( stderr ); |
914 | 914 | } |
915 | | } while (result && shell_env->forever); |
| 915 | } while (result || shell_env->forever); |
916 | 916 | |
917 | 917 | } |
918 | 918 | |