make find accept -type p for FIFOs
also -type s but never match
This commit is contained in:
		
							parent
							
								
									61f8571ff2
								
							
						
					
					
						commit
						5ea6a2cd2c
					
				@ -673,6 +673,12 @@ int t;
 | 
			
		||||
	  case 'f':
 | 
			
		||||
		p->n_info.n_int.n_val = S_IFREG;
 | 
			
		||||
		break;
 | 
			
		||||
	  case 'p':
 | 
			
		||||
		p->n_info.n_int.n_val = S_IFIFO;
 | 
			
		||||
		break;
 | 
			
		||||
	  case 's':
 | 
			
		||||
		p->n_info.n_int.n_val = ~0;
 | 
			
		||||
		break;
 | 
			
		||||
	  case 'l':
 | 
			
		||||
#ifdef S_IFLNK
 | 
			
		||||
		p->n_info.n_int.n_val = S_IFLNK;
 | 
			
		||||
@ -681,7 +687,7 @@ int t;
 | 
			
		||||
#endif
 | 
			
		||||
		break;
 | 
			
		||||
	  default:
 | 
			
		||||
		fatal("-type needs b, c, d, f or l", "");
 | 
			
		||||
		fatal("-type needs b, c, d, f, p, s or l", "");
 | 
			
		||||
	}
 | 
			
		||||
	break;
 | 
			
		||||
    case OP_USER:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user