mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virFileAccessibleAs: Remove redundant forkRet
The variable forkRet is not used after commit 25f8781
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6549c3a4d1
commit
4e9d0ad7a0
@ -2117,7 +2117,6 @@ virFileAccessibleAs(const char *path, int mode,
|
|||||||
{
|
{
|
||||||
pid_t pid = 0;
|
pid_t pid = 0;
|
||||||
int status, ret = 0;
|
int status, ret = 0;
|
||||||
int forkRet = 0;
|
|
||||||
gid_t *groups;
|
gid_t *groups;
|
||||||
int ngroups;
|
int ngroups;
|
||||||
|
|
||||||
@ -2152,15 +2151,6 @@ virFileAccessibleAs(const char *path, int mode,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* child.
|
|
||||||
* Return positive value here. Parent
|
|
||||||
* will change it to negative one. */
|
|
||||||
|
|
||||||
if (forkRet < 0) {
|
|
||||||
ret = errno;
|
|
||||||
goto childerror;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (virSetUIDGID(uid, gid, groups, ngroups) < 0) {
|
if (virSetUIDGID(uid, gid, groups, ngroups) < 0) {
|
||||||
ret = errno;
|
ret = errno;
|
||||||
goto childerror;
|
goto childerror;
|
||||||
|
Loading…
Reference in New Issue
Block a user