projects
/
schsh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make sure scp does not get an additional parameter as last argument
[schsh.git]
/
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):