aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_cap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libutil/login_cap.c')
-rw-r--r--lib/libutil/login_cap.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c
index dc93e2825a2c..bb4c080ed39f 100644
--- a/lib/libutil/login_cap.c
+++ b/lib/libutil/login_cap.c
@@ -193,8 +193,15 @@ login_getclassbyname(char const *name, const struct passwd *pwd)
static char *login_dbarray[] = { NULL, NULL, NULL };
- /* Switch to user mode before checking/reading its ~/.login_conf */
- /* - some NFSes have root read access disabled. */
+#ifndef _FILE_LOGIN_CONF_WORKS
+ dir = NULL;
+#endif
+ /*
+ * Switch to user mode before checking/reading its ~/.login_conf
+ * - some NFSes have root read access disabled.
+ *
+ * XXX: This fails to configure additional groups.
+ */
if (dir) {
euid = geteuid();
egid = getegid();