summaryrefslogtreecommitdiffstats
path: root/libutil/login_cap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libutil/login_cap.c')
-rw-r--r--libutil/login_cap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libutil/login_cap.c b/libutil/login_cap.c
index 85883be..bb4c080 100644
--- a/libutil/login_cap.c
+++ b/libutil/login_cap.c
@@ -193,6 +193,9 @@ login_getclassbyname(char const *name, const struct passwd *pwd)
static char *login_dbarray[] = { NULL, NULL, NULL };
+#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.