make sure scp does not get an additional parameter as last argument
authorRalf Jung <post@ralfj.de>
Wed, 19 Feb 2014 20:36:50 +0000 (21:36 +0100)
committerRalf Jung <post@ralfj.de>
Wed, 19 Feb 2014 20:36:50 +0000 (21:36 +0100)
schsh

diff --git a/schsh b/schsh
index b433a19ab1034af1c16ff8f36aea21fd7067ac2a..f079112fa6ffe77920d9151ad4de22c080b5dd94 100755 (executable)
--- 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):