backups: fix passing -z option to openssl

Note that this is not fix #775 in any way.
This commit is contained in:
Marek Marczykowski-Górecki 2014-01-10 03:26:50 +01:00
parent 01312a17d6
commit d86865d299

View File

@ -760,8 +760,8 @@ class Extract_Worker(Process):
# Start decrypt
self.decryptor_process = subprocess.Popen (["openssl", "enc",
"-d", "-aes-256-cbc",
"-pass", "pass:"+self.passphrase],
(["-z"] if compressed else []),
"-pass", "pass:"+self.passphrase] +
(["-z"] if self.compressed else []),
stdin=open(filename,'rb'),
stdout=subprocess.PIPE)