Don't use deletePath() to delete a single file

This commit is contained in:
Eelco Dolstra 2012-02-15 00:28:01 +01:00
parent e9fc91df45
commit 58ac7a17a4
1 changed files with 1 additions and 1 deletions

View File

@ -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);