* Use deletePathWrapped() in more places.
This commit is contained in:
parent
fa33303146
commit
5f681988f2
3 changed files with 30 additions and 21 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue