about summary refs log tree commit diff
path: root/src/libstore/local-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-09T00·26+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-09T00·26+0000
commit5f681988f210dd8edbb0d13da7d00e1c0e2a1769 (patch)
treeb6668269225fd8098c26463307c5dea096339f0d /src/libstore/local-store.hh
parentfa333031464ca394317a55a0e7c6b773f068aae2 (diff)
* Use deletePathWrapped() in more places.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r--src/libstore/local-store.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh
index 6e2350abef7e..ef508630ba22 100644
--- a/src/libstore/local-store.hh
+++ b/src/libstore/local-store.hh
@@ -148,6 +148,12 @@ bool amPrivileged();
 /* Recursively change the ownership of `path' to the current uid. */
 void getOwnership(const Path & path);
 
+/* Like deletePath(), but changes the ownership of `path' using the
+   setuid wrapper if necessary (and possible). */
+void deletePathWrapped(const Path & path,
+    unsigned long long & bytesFreed);
+
+void deletePathWrapped(const Path & path);
  
 }