]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-scripts-closefds.patch
- updated amd64 patch
[packages/rpm.git] / rpm-scripts-closefds.patch
index a3b72d890330903aaaa3ee659dd2789f0ada9fb1..98a95cc9f054dfcb6f732eb022068153e867f24b 100644 (file)
@@ -6,12 +6,12 @@
            }
 -      } else
 +      } else {
-+          int oldfl;
++          long oldfl;
            fd = fdLink(fd, "persist (showProgress)");
 +          oldfl=Fcntl(fd, F_GETFD, 0);
 +          if(oldfl >= 0) {
 +              oldfl |= FD_CLOEXEC; /* scripts shouldn't inherit rpm file descriptor */
-+              Fcntl(fd, F_SETFD, oldfl);
++              Fcntl(fd, F_SETFD, (void*)oldfl);
 +          }
 +      }
        /*@=type@*/
This page took 0.050266 seconds and 4 git commands to generate.