]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-scripts-closefds.patch
- added nosetproctitle patch (disable setproctitle as internal function or external...
[packages/rpm.git] / rpm-scripts-closefds.patch
index a3b72d890330903aaaa3ee659dd2789f0ada9fb1..5a9f7871c0cc8e2ed94212d9e5e08052fecdc5a1 100644 (file)
@@ -6,14 +6,14 @@
            }
 -      } 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@*/
-       return fd;
-       /*@notreached@*/ break;
+ #if defined(POSIX_FADV_WILLNEED)
+       (void) Fadvise(fd, 0, 0, POSIX_FADV_WILLNEED);
This page took 0.02864 seconds and 4 git commands to generate.