dir.c: ignore ENOTCAPABLE while glob similar to EACCES
This commit is contained in:
parent
420622b5a7
commit
9033ac3e2c
Notes:
git
2022-01-19 11:19:39 +09:00
6
dir.c
6
dir.c
@ -1992,7 +1992,11 @@ rb_glob_error(const char *path, VALUE a, const void *enc, int error)
|
|||||||
struct glob_error_args args;
|
struct glob_error_args args;
|
||||||
VALUE (*errfunc)(VALUE) = glob_func_error;
|
VALUE (*errfunc)(VALUE) = glob_func_error;
|
||||||
|
|
||||||
if (error == EACCES) {
|
switch (error) {
|
||||||
|
case EACCES:
|
||||||
|
#ifdef ENOTCAPABLE
|
||||||
|
case ENOTCAPABLE:
|
||||||
|
#endif
|
||||||
errfunc = glob_func_warning;
|
errfunc = glob_func_warning;
|
||||||
}
|
}
|
||||||
args.path = path;
|
args.path = path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user