Change-Id: Ic52222eb6157a5507689a3a91f6103d13de5ca02
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
+ src_path.data()
+ "` file/directory");
- if (chown(dest_path.data(), info.st_uid, info.st_gid) == -1)
- throw std::system_error(errno, std::system_category(),
- "Couldn't set owner/group of the `"s
- + dest_path.data()
- + "` file/directory");
+ change_owner_and_group(dest_path, info.st_uid, info.st_gid);
}
std::string fs_helpers::get_smack_label(std::string_view src_path, smack_label_type type)