summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-21 16:40:53 +0000
committerMatt Wilson <msw@redhat.com>2001-06-21 16:40:53 +0000
commitb218954caa8e686af3b80dd6e1fdf5f7ea9f2446 (patch)
treebd1895dfcd0ab38af0c2e87261967a2fc3b14e0a /packages.py
parent86e5b8e0d783732652c920e54b5f7bbb799d3ac3 (diff)
downloadanaconda-b218954caa8e686af3b80dd6e1fdf5f7ea9f2446.tar.gz
anaconda-b218954caa8e686af3b80dd6e1fdf5f7ea9f2446.tar.xz
anaconda-b218954caa8e686af3b80dd6e1fdf5f7ea9f2446.zip
close on exec - keep scriptlets from inheriting the package fd
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index 98aa2dd14..ac51d0572 100644
--- a/packages.py
+++ b/packages.py
@@ -25,6 +25,7 @@ import pcmcia
import dispatch
from log import log
from flags import flags
+import fcntl, FCNTL
def queryUpgradeContinue(intf, dir, dispatch):
if dir == dispatch.DISPATCH_BACK:
@@ -213,6 +214,7 @@ class InstallCallback:
while self.rpmFD < 0:
try:
self.rpmFD = os.open(fn, os.O_RDONLY)
+ fcntl.fcntl(self.rpmFD, FCNTL.F_SETFD, FCNTL.FD_CLOEXEC)
# Make sure this package seems valid
try:
(h, isSource) = rpm.headerFromPackage(self.rpmFD)