diff options
author | Daniel Ammann <daniel.ammann@bytesatwork.ch> | 2023-03-17 18:03:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-23 22:41:24 +0000 |
commit | 0f887589c279ce07692b4d8e118954a9d214ca45 (patch) | |
tree | 448314d2151126d34493a0b99e1b61f41a1e2b84 | |
parent | 00f9ab2cacfbd2a63b6b4959cf5401babae7e32a (diff) | |
download | bitbake-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.py | 2 |
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) |