mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
tests: update globs so ssh command injection tests pass on macOS
This commit is contained in:
parent
1890938d46
commit
0d77da5d21
@ -51,8 +51,8 @@ test for ssh vulnerability
|
||||
abort: potentially unsafe hostname: '-oProxyCommand=rm${IFS}nonexistent'
|
||||
[255]
|
||||
$ hg clone 'git+ssh://fakehost|rm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
|
||||
ssh: connect to host fakehost%7crm%24%7bifs%7dnonexistent port 22: * (glob)
|
||||
ssh: * fakehost%7crm%24%7bifs%7dnonexistent* (glob)
|
||||
abort: git remote error: The remote server unexpectedly closed the connection.
|
||||
$ hg clone 'git+ssh://fakehost%7Crm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
|
||||
ssh: connect to host fakehost%7crm%24%7bifs%7dnonexistent port 22: * (glob)
|
||||
ssh: * fakehost%7crm%24%7bifs%7dnonexistent* (glob)
|
||||
abort: git remote error: The remote server unexpectedly closed the connection.
|
||||
|
@ -366,8 +366,8 @@ test for ssh vulnerability
|
||||
abort: potentially unsafe hostname: '-oProxyCommand=rm nonexistent'
|
||||
[255]
|
||||
$ hg pull 'git+ssh://fakehost|shellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn:
|
||||
ssh: connect to host fakehost%7cshellcommand port 22: * (glob)
|
||||
ssh: * fakehost%7cshellcommand* (glob)
|
||||
abort: git remote error: The remote server unexpectedly closed the connection.
|
||||
$ hg pull 'git+ssh://fakehost%7Cshellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn:
|
||||
ssh: connect to host fakehost%7cshellcommand port 22: * (glob)
|
||||
ssh: * fakehost%7cshellcommand* (glob)
|
||||
abort: git remote error: The remote server unexpectedly closed the connection.
|
||||
|
@ -211,8 +211,8 @@ test for ssh vulnerability
|
||||
abort: potentially unsafe hostname: '-oProxyCommand=rm nonexistent'
|
||||
[255]
|
||||
$ hg push 'git+ssh://fakehost|rm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
|
||||
ssh: connect to host fakehost%7crm%20nonexistent port 22: * (glob)
|
||||
ssh: * fakehost%7crm%20nonexistent* (glob)
|
||||
abort: git remote error: The remote server unexpectedly closed the connection.
|
||||
$ hg push 'git+ssh://fakehost%7Crm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn:
|
||||
ssh: connect to host fakehost%7crm%20nonexistent port 22: * (glob)
|
||||
ssh: * fakehost%7crm%20nonexistent* (glob)
|
||||
abort: git remote error: The remote server unexpectedly closed the connection.
|
||||
|
Loading…
Reference in New Issue
Block a user