projects
/
schsh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a5b740f
)
make sure scp does not get an additional parameter as last argument
author
Ralf Jung
<post@ralfj.de>
Wed, 19 Feb 2014 20:36:50 +0000
(21:36 +0100)
committer
Ralf Jung
<post@ralfj.de>
Wed, 19 Feb 2014 20:36:50 +0000
(21:36 +0100)
schsh
patch
|
blob
|
history
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 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):
return True
def allowRSync(run):