about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
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);