]> arthur.barton.de Git - bup.git/commit
main: fix output string truncation
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 22 Nov 2021 20:34:29 +0000 (21:34 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 5 Dec 2021 20:26:53 +0000 (14:26 -0600)
commitd030d9bcf60d548c9397c1c1acdc5d9bf1a14862
tree5358090e11150473f4d88760721216148294bc9d
parentba8ed092989c05c30e2b190bb8a7e94853148757
main: fix output string truncation

There's a bug here that causes output to be cut off if it's
if the line was too long, in that case 'width' chars would
be removed at the beginning, rather than actually showing
'width' chars. Fix that.

Reported-by: Nix <nix@esperi.org.uk>
Fixes: 00fb1f1b2a53 ("Clean subprocess output without newliner")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/main.py