diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 11:35:31 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 11:35:31 +0000 |
commit | 3c84ded68a9106ac87886e173e75dd3dde33c231 (patch) | |
tree | dcc90d017e2c77b98d3753d470adfa576d36149c /libc/misc/glob | |
parent | 4d668e00b8c42aca5662f1d65496a97a507f583f (diff) | |
download | uClibc-alpine-3c84ded68a9106ac87886e173e75dd3dde33c231.tar.bz2 uClibc-alpine-3c84ded68a9106ac87886e173e75dd3dde33c231.tar.xz |
Convert internal users of chmod/*stat*, minimize change for __strsep
Diffstat (limited to 'libc/misc/glob')
-rw-r--r-- | libc/misc/glob/glob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/glob/glob.c b/libc/misc/glob/glob.c index d4a0b67ca..795030388 100644 --- a/libc/misc/glob/glob.c +++ b/libc/misc/glob/glob.c @@ -284,7 +284,7 @@ glob (pattern, flags, errfunc, pglob) int i; struct stat st; for (i = oldcount; i < pglob->gl_pathc; ++i) - if (lstat (pglob->gl_pathv[i], &st) == 0 && + if (__lstat (pglob->gl_pathv[i], &st) == 0 && S_ISDIR (st.st_mode)) __strcat (pglob->gl_pathv[i], "/"); } |