HomePhabricator

util: Add StripRedundantLastElementsOfPath function

Description

util: Add StripRedundantLastElementsOfPath function

Summary:
This fixes a bug causing listwalletdir to strip lead char of wallet name is datadir has a trailing '/'

Co-authored-by: saibato <saibato.naga@pm.me>
Co-authored-by: MarcoFalke <falke.marco@gmail.com>

This is a backport of core#20080

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10693

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Oct 16 2020, 15:06
PiRKCommitted on Dec 21 2021, 09:08
PiRKPushed on Dec 21 2021, 09:08
Reviewer
Restricted Project
Differential Revision
D10693: util: Add StripRedundantLastElementsOfPath function
Parents
rABC4237e75eea3b: [net] Consolidate logic around calling CAddrMan::Connected()
Branches
Unknown
Tags
Unknown