summaryrefslogtreecommitdiff
path: root/vmsfunctions.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmsfunctions.c')
-rw-r--r--vmsfunctions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vmsfunctions.c b/vmsfunctions.c
index 02e93d3..3acf54c 100644
--- a/vmsfunctions.c
+++ b/vmsfunctions.c
@@ -90,7 +90,10 @@ readdir (DIR *dir)
dentry->d_namlen = dnam->nam$b_name + dnam->nam$b_type;
strncpy (dentry->d_name, dnam->nam$l_name, dentry->d_namlen);
dentry->d_name[dentry->d_namlen] = '\0';
+
+#ifdef HAVE_CASE_INSENSITIVE_FS
uppercasify (dentry->d_name);
+#endif
return (dentry);
}