core: Also chown() after unpacking objects

This commit is contained in:
Colin Walters 2011-11-18 18:50:29 -05:00
parent 7d63ad5ae8
commit b7a45b5815
1 changed files with 6 additions and 0 deletions

View File

@ -871,6 +871,12 @@ unpack_file (GFile *file,
goto out;
}
if (lchown (dest_path, uid, gid) < 0)
{
ot_util_set_error_from_errno (error, errno);
goto out;
}
if (!S_ISLNK (mode))
{
if (chmod (dest_path, mode) < 0)