Garbage collector: Don't follow symlinks arbitrarily
Only indirect roots (symlinks to symlinks to the Nix store) are now supported.
This commit is contained in:
		
							parent
							
								
									25a00cae5b
								
							
						
					
					
						commit
						aeb810b01e
					
				
					 5 changed files with 54 additions and 48 deletions
				
			
		|  | @ -45,6 +45,10 @@ Path dirOf(const Path & path); | |||
|    following the final `/'. */ | ||||
| string baseNameOf(const Path & path); | ||||
| 
 | ||||
| /* Check whether a given path is a descendant of the given
 | ||||
|    directory. */ | ||||
| bool isInDir(const Path & path, const Path & dir); | ||||
| 
 | ||||
| /* Get status of `path'. */ | ||||
| struct stat lstat(const Path & path); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue