X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm-scripts-closefds.patch;h=98a95cc9f054dfcb6f732eb022068153e867f24b;hp=a3b72d890330903aaaa3ee659dd2789f0ada9fb1;hb=1da879ec9c0232219daf532c1baeb13a525cd4c1;hpb=5b0f0ac9a55211821b0778001221c01854a2e4d2 diff --git a/rpm-scripts-closefds.patch b/rpm-scripts-closefds.patch index a3b72d8..98a95cc 100644 --- a/rpm-scripts-closefds.patch +++ b/rpm-scripts-closefds.patch @@ -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@*/