core: Also chown() after unpacking objects
This commit is contained in:
parent
7d63ad5ae8
commit
b7a45b5815
|
|
@ -871,6 +871,12 @@ unpack_file (GFile *file,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lchown (dest_path, uid, gid) < 0)
|
||||||
|
{
|
||||||
|
ot_util_set_error_from_errno (error, errno);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (!S_ISLNK (mode))
|
if (!S_ISLNK (mode))
|
||||||
{
|
{
|
||||||
if (chmod (dest_path, mode) < 0)
|
if (chmod (dest_path, mode) < 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue