Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
network:ha-clustering:Unstable
python-suds
suds-insecure-cache-tempdir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suds-insecure-cache-tempdir.patch of Package python-suds
diff -ruN a/suds/cache.py b/suds/cache.py --- a/suds/cache.py 2010-04-14 21:04:17.000000000 +0200 +++ b/suds/cache.py 2013-11-27 14:16:34.968138726 +0100 @@ -19,8 +19,9 @@ """ import os +import shutil import suds -from tempfile import gettempdir as tmp +import tempfile from suds.transport import * from suds.sax.parser import Parser from suds.sax.element import Element @@ -138,11 +139,15 @@ @type duration: {unit:value} """ if location is None: - location = os.path.join(tmp(), 'suds') + location = tempfile.mkdtemp() self.location = location self.duration = (None, 0) self.setduration(**duration) self.checkversion() + + def __del__(self): + if self.location.startswith("/tmp"): + shutil.rmtree(self.location) def fnsuffix(self): """
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor