make sandbox builds more permissive
This commit is contained in:
		
							parent
							
								
									6dbc9e02ec
								
							
						
					
					
						commit
						e770f941d6
					
				
					 2 changed files with 7 additions and 6 deletions
				
			
		|  | @ -167,10 +167,11 @@ string baseNameOf(const Path & path) | |||
| 
 | ||||
| bool isInDir(const Path & path, const Path & dir) | ||||
| { | ||||
|     return path[0] == '/' | ||||
|         && string(path, 0, dir.size()) == dir | ||||
|         && path.size() >= dir.size() + 2 | ||||
|         && path[dir.size()] == '/'; | ||||
|     return dir == "/" | ||||
|         || (path[0] == '/' | ||||
|             && string(path, 0, dir.size()) == dir | ||||
|             && path.size() >= dir.size() + 2 | ||||
|             && path[dir.size()] == '/'); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue