core: Also chown() after unpacking objects
This commit is contained in:
1 parent
7d63ad5ae8
commit
b7a45b5815
1 file changed
+6
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user