Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153287 Details for
Bug 237317
post scripts execute in chroot but with cwd of real /
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
set cwd for scripts
237317.patch (text/plain), 1.35 KB, created by
Chris Lumens
on 2007-04-23 15:45:13 UTC
(
hide
)
Description:
set cwd for scripts
Filename:
MIME Type:
Creator:
Chris Lumens
Created:
2007-04-23 15:45:13 UTC
Size:
1.35 KB
patch
obsolete
>Index: iutil.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/iutil.py,v >retrieving revision 1.140 >diff -u -r1.140 iutil.py >--- iutil.py 15 Jan 2007 19:42:54 -0000 1.140 >+++ iutil.py 23 Apr 2007 15:39:23 -0000 >@@ -24,7 +24,7 @@ > import logging > log = logging.getLogger("anaconda") > >-def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2, >+def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2, > searchPath = 0, root = '/'): > def chroot (): > os.chroot(root) >@@ -45,7 +45,7 @@ > > try: > proc = subprocess.Popen([command] + argv, stdin=stdin, stdout=stdout, >- stderr=stderr, preexec_fn=chroot) >+ stderr=stderr, preexec_fn=chroot, cwd=root) > ret = proc.wait() > except OSError, (errno, msg): > raise RuntimeError, "Error running " + command + ": " + msg >@@ -69,7 +69,7 @@ > pipe = subprocess.Popen([command] + argv, stdin=stdin, > stdout=subprocess.PIPE, > stderr=subprocess.STDOUT, >- preexec_fn=chroot) >+ preexec_fn=chroot, cwd=root) > except OSError, (errno, msg): > raise RuntimeError, "Error running " + command + ": " + msg >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237317
: 153287