1 --- rpm-4.16.0/lib/rpminstall.c.orig 2020-05-28 12:04:25.040136702 +0200
2 +++ rpm-4.16.0/lib/rpminstall.c 2020-10-03 09:46:49.369707250 +0200
9 #include <rpm/rpmcli.h>
10 #include <rpm/rpmtag.h>
11 #include <rpm/rpmlib.h> /* rpmReadPackageFile, vercmp etc */
20 + oldfl=Fcntl(fd, F_GETFD, 0);
22 + oldfl |= FD_CLOEXEC; /* scripts shouldn't inherit rpm file descriptor */
23 + Fcntl(fd, F_SETFD, (void*)oldfl);