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:
		
							parent
							
								
									420622b5a7
								
							
						
					
					
						commit
						9033ac3e2c
					
				
				
				Notes:
				
					git
				
				2022-01-19 11:19:39 +09:00 
				
			
			
			
		
		
					 1 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										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;
 | 
			
		||||
    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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue