summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/login_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/shell/login_check.c')
-rw-r--r--cpukit/libmisc/shell/login_check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/login_check.c b/cpukit/libmisc/shell/login_check.c
index 372d059631..9d853f8d1f 100644
--- a/cpukit/libmisc/shell/login_check.c
+++ b/cpukit/libmisc/shell/login_check.c
@@ -33,6 +33,7 @@
#include <crypt.h>
#include <rtems/shell.h>
+#include <rtems/userenv.h>
bool rtems_shell_login_check(
const char *user,
@@ -76,6 +77,7 @@ bool rtems_shell_login_check(
setgid(pw.pw_gid);
seteuid(pw.pw_uid);
setegid(pw.pw_gid);
+ rtems_current_user_env_getgroups();
}
return ok;