diff options
Diffstat (limited to 'lib/libc/gen/glob.3')
-rw-r--r-- | lib/libc/gen/glob.3 | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/libc/gen/glob.3 b/lib/libc/gen/glob.3 index fdd69f0d2d95e..72a94e205c4d4 100644 --- a/lib/libc/gen/glob.3 +++ b/lib/libc/gen/glob.3 @@ -275,24 +275,10 @@ is .Pf non- Dv NULL , .Fn glob calls -.Fa \*(lp*errfunc\*(rp Ns ( Fa path , errno ) . -This may be unintuitive: a pattern like -.Ql */Makefile -will try to -.Xr stat 2 -.Ql foo/Makefile -even if -.Ql foo -is not a directory, resulting in a -call to -.Fa errfunc . -The error routine can suppress this action by testing for -.Er ENOENT -and -.Er ENOTDIR ; +.Fa \*(lp*errfunc\*(rp Ns ( Fa path , errno ) , however, the .Dv GLOB_ERR -flag will still cause an immediate +flag will cause an immediate return when this happens. .Pp If |