* Ignore (with a warning) invalid garbage collector roots.
This commit is contained in:
		
							parent
							
								
									c09e47c68f
								
							
						
					
					
						commit
						109cde6706
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -249,7 +249,12 @@ static void findRoots(const Path & path, bool recurseSymlinks,
 | 
				
			||||||
        if (isInStore(target2)) {
 | 
					        if (isInStore(target2)) {
 | 
				
			||||||
            debug(format("found root `%1%' in `%2%'")
 | 
					            debug(format("found root `%1%' in `%2%'")
 | 
				
			||||||
                % target2 % path);
 | 
					                % target2 % path);
 | 
				
			||||||
            roots.insert(toStorePath(target2));
 | 
					            Path target3 = toStorePath(target2);
 | 
				
			||||||
 | 
					            if (isValidPath(target3)) 
 | 
				
			||||||
 | 
					                roots.insert(target3);
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                printMsg(lvlInfo, format("skipping invalid root from `%1%' to `%2%'")
 | 
				
			||||||
 | 
					                    % path % target3);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        else if (recurseSymlinks) {
 | 
					        else if (recurseSymlinks) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue