diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-07T15·54+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-07T15·54+0000 |
commit | ec23ecc64d40b7f65585c23592db123127967221 (patch) | |
tree | ad52f71354eccf862e1e7350f746d18ca0662a3c /src/libstore/local-store.hh | |
parent | a0a43c32062f756b32feca7d04e89fb5d01767db (diff) |
* In the garbage collector, if deleting a path fails, try to fix its
ownership, then try again.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 58bb70d0e4d5..6e2350abef7e 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -139,6 +139,15 @@ void deleteFromStore(const Path & path, unsigned long long & bytesFreed); void verifyStore(bool checkContents); +/* Whether we are in build users mode. */ +bool haveBuildUsers(); + +/* Whether we are root. */ +bool amPrivileged(); + +/* Recursively change the ownership of `path' to the current uid. */ +void getOwnership(const Path & path); + } |