aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-06-03 18:17:14 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-06-03 18:17:14 +0000
commitdfaed03424beb95c7f6e9a70672edc4a691b972c (patch)
tree01abefbd0ffd8965a3d06ffc5758108f2e2dba0f
parent27d6e5732cd878a889f37a77f035cd83991a4e70 (diff)
downloadsos-dfaed03424beb95c7f6e9a70672edc4a691b972c.tar.gz
rhbz 598978
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@969 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rwxr-xr-xsos/policyredhat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/policyredhat.py b/sos/policyredhat.py
index 0bf39dbe..c6bdddfb 100755
--- a/sos/policyredhat.py
+++ b/sos/policyredhat.py
@@ -193,9 +193,9 @@ class SosPolicy:
and reports.
"""
uniqname = "%s-%s" % (self.hostName(), time.strftime("%Y%m%d%H%M%s"))
- dstroot = os.path.join(tmpdir,uniqname)
+ dstroot = os.path.join(os.path.abspath(tmpdir),uniqname)
try:
- os.mkdir(dstroot, 0700)
+ os.makedirs(dstroot, 0700)
except:
return False
return dstroot