Merge "Fix logspam when user removed before CE storage prepared"
This commit is contained in:
commit
481a5367a3
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ static bool prepare_dir(struct selabel_handle* sehandle, mode_t mode, uid_t uid,
|
|||
static bool rmrf_contents(const std::string& path) {
|
||||
auto dirp = std::unique_ptr<DIR, int (*)(DIR*)>(opendir(path.c_str()), closedir);
|
||||
if (!dirp) {
|
||||
if (errno == ENOENT) {
|
||||
return true;
|
||||
}
|
||||
PLOG(ERROR) << "Unable to open directory: " << path;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue