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