summaryrefslogtreecommitdiff
path: root/mat
diff options
context:
space:
mode:
authorjvoisin2011-08-30 19:16:39 +0200
committerjvoisin2011-08-30 19:16:39 +0200
commit84fac1db46d7acabd47ab440775bc639fecf4b5f (patch)
tree3500686df33d95d3d6ee46cca3a0dc3c237ec515 /mat
parent368c748f351412d81bb07a1588e3242f0ba5fc08 (diff)
security fix
Diffstat (limited to 'mat')
-rw-r--r--mat/mat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mat/mat.py b/mat/mat.py
index eb71fc7..318e05e 100644
--- a/mat/mat.py
+++ b/mat/mat.py
@@ -121,7 +121,7 @@ def secure_remove(filename):
121 ''' 121 '''
122 removed = False 122 removed = False
123 try: 123 try:
124 subprocess.call('shred --remove %s' % filename, shell=True) 124 subprocess.call(['shred', '--remove', filename])
125 removed = True 125 removed = True
126 except: 126 except:
127 logging.error('Unable to securely remove %s' % filename) 127 logging.error('Unable to securely remove %s' % filename)