aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Ammann <daniel.ammann@bytesatwork.ch>2023-03-17 18:03:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-23 22:41:24 +0000
commit0f887589c279ce07692b4d8e118954a9d214ca45 (patch)
tree448314d2151126d34493a0b99e1b61f41a1e2b84
parent00f9ab2cacfbd2a63b6b4959cf5401babae7e32a (diff)
downloadbitbake-0f887589c279ce07692b4d8e118954a9d214ca45.tar.gz
fetch2/sftp: Fix fetching URIs with spaces
Spaces can be used in URIs with %20, but the URI needs to be quoted. Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--lib/bb/fetch2/sftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/sftp.py b/lib/bb/fetch2/sftp.py
index f87f292e5..7884cce94 100644
--- a/lib/bb/fetch2/sftp.py
+++ b/lib/bb/fetch2/sftp.py
@@ -103,7 +103,7 @@ class SFTP(FetchMethod):
if path[:3] == '/~/':
path = path[3:]
- remote = '%s%s:%s' % (user, urlo.hostname, path)
+ remote = '"%s%s:%s"' % (user, urlo.hostname, path)
cmd = '%s %s %s %s' % (basecmd, port, remote, lpath)