aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-22 21:28:03 +0000
committerRoland McGrath <roland@gnu.org>1996-05-22 21:28:03 +0000
commit0efef8fcee50e023049c6371c28ed5ecca365272 (patch)
treee37fdca80ab9a3444bc0f45954f806bbc005ac6d /posix
parent0b0fc9d3a035ddbe48d37b4cedfef5ab290f95ca (diff)
downloadglibc-0efef8fcee50e023049c6371c28ed5ecca365272.zip
glibc-0efef8fcee50e023049c6371c28ed5ecca365272.tar.gz
glibc-0efef8fcee50e023049c6371c28ed5ecca365272.tar.bz2
Wed May 22 17:22:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* posix/glob.c [VMS]: Don't include <pwd.h>. [HAVE_VMSDIR_H]: Include "vmsdir.h". (glob) [VMS]: Don't grok ~.
Diffstat (limited to 'posix')
-rw-r--r--posix/glob.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/posix/glob.c b/posix/glob.c
index 56d58ee..ff015fc 100644
--- a/posix/glob.c
+++ b/posix/glob.c
@@ -93,6 +93,9 @@ extern int errno;
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
+# ifdef HAVE_VMSDIR_H
+# include "vmsdir.h"
+# endif /* HAVE_VMSDIR_H */
#endif
@@ -435,6 +438,7 @@ glob (pattern, flags, errfunc, pglob)
oldcount = pglob->gl_pathc;
+#ifndef VMS
if ((flags & GLOB_TILDE) && dirname[0] == '~')
{
if (dirname[1] == '\0')
@@ -473,6 +477,7 @@ glob (pattern, flags, errfunc, pglob)
#endif
}
}
+#endif /* Not VMS. */
if (glob_pattern_p (dirname, !(flags & GLOB_NOESCAPE)))
{