]> arthur.barton.de Git - bup.git/commit
ftp: fix ls arguments for python3
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jul 2020 21:28:46 +0000 (23:28 +0200)
committerRob Browning <rlb@defaultvalue.org>
Wed, 29 Jul 2020 00:51:55 +0000 (19:51 -0500)
commit2040b6890af45318eb512b4c7f5398e040b1ffe5
treeeaf192aeb1588475e2887a67803298afbd7a0e09
parent20442f9afdcd3fc36d69bac3d8b7513920501ee0
ftp: fix ls arguments for python3

During the conversion to python 3, ftp ls could no longer
get option arguments, because we're now passing *bytes* to
the option parser that still expects *str*.

Fix this by fsdecode()'ing the bytes into str, which then
causes the option parsing to work properly, and the result
will be fsencode()'d again via argv_bytes() for usage.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/cmd/ftp-cmd.py