summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-15 00:28:01 +0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-02-15 00:28:01 +0100
commit58ac7a17a43587001331e4a0379d38c369b99057 (patch)
tree58bb305548bacd462a6996f59bf401a8049ece31 /src
parente9fc91df45c28376960a6e38c8c5f04bf9312623 (diff)
downloadguix-58ac7a17a43587001331e4a0379d38c369b99057.tar.gz
Don't use deletePath() to delete a single file
Diffstat (limited to 'src')
-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 c2e999a6e6..e1e7b4c1c5 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);