diff options
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 6 |
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); } |