diff options
-rwxr-xr-x | sos/policyredhat.py | 4 |
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 |