<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Helvetica, Arial, sans-serif">I will resend this patch
      with more appropriate title.</font><br>
    <br>
    <div class="moz-cite-prefix">On 05/06/18 07:32, Radostin Stoyanov
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180605063257.20190-1-rstoyanov1@gmail.com">
      <pre wrap="">The variable forkRest is not used after commit 25f8781

<a class="moz-txt-link-freetext" href="https://github.com/libvirt/libvirt/commit/25f8781#diff-d2023c1ac4f688aa2021e21cfb60d4f0L1861">https://github.com/libvirt/libvirt/commit/25f8781#diff-d2023c1ac4f688aa2021e21cfb60d4f0L1861</a>

Signed-off-by: Radostin Stoyanov <a class="moz-txt-link-rfc2396E" href="mailto:rstoyanov1@gmail.com"><rstoyanov1@gmail.com></a>
---
 src/util/virfile.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/util/virfile.c b/src/util/virfile.c
index 523241f64f..a2c4cebb56 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -2117,7 +2117,6 @@ virFileAccessibleAs(const char *path, int mode,
 {
     pid_t pid = 0;
     int status, ret = 0;
-    int forkRet = 0;
     gid_t *groups;
     int ngroups;
 
@@ -2152,15 +2151,6 @@ virFileAccessibleAs(const char *path, int mode,
         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) {
         ret = errno;
         goto childerror;
</pre>
    </blockquote>
    <br>
  </body>
</html>