From dfaed03424beb95c7f6e9a70672edc4a691b972c Mon Sep 17 00:00:00 2001 From: astokes Date: Thu, 3 Jun 2010 18:17:14 +0000 Subject: rhbz 598978 git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@969 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- sos/policyredhat.py | 4 ++-- 1 file 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 -- cgit