Make realpath deal with double slashes
This commit is contained in:
		
							parent
							
								
									ad5ecf906b
								
							
						
					
					
						commit
						5cc29a6c7e
					
				@ -170,8 +170,8 @@ static char *realpath_recurse(const char *file_name, char *resolved_name,
 | 
			
		||||
			max_depth))
 | 
			
		||||
			return NULL;
 | 
			
		||||
 | 
			
		||||
		/* skip the slash */
 | 
			
		||||
		if (*file_name == '/')
 | 
			
		||||
		/* skip the slash(es) */
 | 
			
		||||
		while (*file_name == '/')
 | 
			
		||||
			file_name++;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user