projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa9898
)
(glob_in_dir): It's no error if opendir fails on a file.
author
drepper
<drepper>
Sun, 2 May 1999 18:16:06 +0000
(18:16 +0000)
committer
drepper
<drepper>
Sun, 2 May 1999 18:16:06 +0000
(18:16 +0000)
sysdeps/generic/glob.c
patch
|
blob
|
history
diff --git
a/sysdeps/generic/glob.c
b/sysdeps/generic/glob.c
index
d624655
..
fe09f50
100644
(file)
--- a/
sysdeps/generic/glob.c
+++ b/
sysdeps/generic/glob.c
@@
-1272,8
+1272,9
@@
glob_in_dir (pattern, directory, flags, errfunc, pglob)
: (__ptr_t) opendir (directory));
if (stream == NULL)
{
- if ((errfunc != NULL && (*errfunc) (directory, errno))
- || (flags & GLOB_ERR))
+ if (errno != ENOTDIR
+ && ((errfunc != NULL && (*errfunc) (directory, errno))
+ || (flags & GLOB_ERR)))
return GLOB_ABORTED;
nfound = 0;
meta = 0;