From: Ralf Jung Date: Wed, 19 Feb 2014 20:36:50 +0000 (+0100) Subject: make sure scp does not get an additional parameter as last argument X-Git-Url: https://git.ralfj.de/schsh.git/commitdiff_plain/34e8fa1956e1e832d51353d10ebbad1a91a6844d?hp=a5b740f9a2f1bcc6adaf23325eb03608bf271eca make sure scp does not get an additional parameter as last argument --- diff --git a/schsh b/schsh index b433a19..f079112 100755 --- a/schsh +++ b/schsh @@ -7,6 +7,7 @@ def allowSCP(run): if len(run) != 3: return False if run[0] != "scp": return False if run[1] not in ("-f", "-t"): return False + if run[2].startswith('-'): return False return True def allowRSync(run):