1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

dir.c: ignore ENOTCAPABLE while glob similar to EACCES

This commit is contained in:
Yuta Saito 2021-11-27 18:27:37 +09:00
parent 420622b5a7
commit 9033ac3e2c
Notes: git 2022-01-19 11:19:39 +09:00

6
dir.c
View file

@ -1992,7 +1992,11 @@ rb_glob_error(const char *path, VALUE a, const void *enc, int error)
struct glob_error_args args;
VALUE (*errfunc)(VALUE) = glob_func_error;
if (error == EACCES) {
switch (error) {
case EACCES:
#ifdef ENOTCAPABLE
case ENOTCAPABLE:
#endif
errfunc = glob_func_warning;
}
args.path = path;