Don't use deletePath() to delete a single file
This commit is contained in:
		
							parent
							
								
									e9fc91df45
								
							
						
					
					
						commit
						58ac7a17a4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -167,7 +167,7 @@ void LocalStore::addTempRoot(const Path & path)
 | 
			
		|||
            if (pathExists(fnTempRoots))
 | 
			
		||||
                /* It *must* be stale, since there can be no two
 | 
			
		||||
                   processes with the same pid. */
 | 
			
		||||
                deletePath(fnTempRoots);
 | 
			
		||||
                unlink(fnTempRoots.c_str());
 | 
			
		||||
 | 
			
		||||
	    fdTempRoots = openLockFile(fnTempRoots, true);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue