HomeFreeBSD

1) POSIX defines well when GLOB_ABORTED can be returned (only for directory

Description

  1. POSIX defines well when GLOB_ABORTED can be returned (only for directory

open/read errors and with GLOB_ERR and gl_errfunc processing), so we can't
blindly return it on any MAXPATHLEN overflow. Even our manpage disagrees
with such GLOB_ABORTED usage. Use GLOB_NOSPACE for that now with errno is
set to 0 as for limits.

  1. Return GLOB_NOSPACE when valid ~ expansion can't happens due to

MAXPATHLEN overflow too.

  1. POSIX (and our manpage) says, if GLOB_ERR is set, GLOB_ABORTED should

be returned immediatelly, without using gl_errfunc. Implement it now.

Details

Provenance
acheAuthored on
Parents
rS303003: Make sure we clean up the rdoc and reldoc directories if NODOC
Branches
Unknown
Tags
Unknown