diff options
Diffstat (limited to 'cpukit/libmisc/shell/login_check.c')
-rw-r--r-- | cpukit/libmisc/shell/login_check.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/login_check.c b/cpukit/libmisc/shell/login_check.c index 9d853f8d1f..a1af07ce1d 100644 --- a/cpukit/libmisc/shell/login_check.c +++ b/cpukit/libmisc/shell/login_check.c @@ -66,6 +66,10 @@ bool rtems_shell_login_check( ok = false; } + if (ok && strcmp(pw.pw_dir, "") != 0) { + ok = chroot(pw.pw_dir) == 0; + } + if (ok) { rtems_shell_env_t *env = rtems_shell_get_current_env(); |