From 58ac7a17a43587001331e4a0379d38c369b99057 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 15 Feb 2012 00:28:01 +0100 Subject: Don't use deletePath() to delete a single file --- src/libstore/gc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index c2e999a6e6a7..e1e7b4c1c54f 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -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); -- cgit 1.4.1