btrfs-progs: fix regression preventing send -p with subvolumes mounted on "/"
commit09827a8a332fdb1b74f4e103b8b72b0b800b5d72
authorAxel Burri <axel@tty0.ch>
Tue, 15 May 2018 15:22:14 +0000 (15 17:22 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jun 2018 14:37:40 +0000 (7 16:37 +0200)
tree62e7c938dfaa7344c4a874abb9acc9c685a820e4
parentad6973647e421b2ae03deca3d55e73b3543796f4
btrfs-progs: fix regression preventing send -p with subvolumes mounted on "/"

Fix subvol_strip_mountpoint for mnt="/" (len=1). In this case, skip
check for trailing slash on full_path (leading slash on full_path is
already asserted by strncmp).

Issue: #122
Pull-request: #138
Fixes: c5dc299aff6b ("btrfs-progs: prevent incorrect use of subvol_strip_mountpoint")
Signed-off-by: Axel Burri <axel@tty0.ch>
Signed-off-by: David Sterba <dsterba@suse.com>
utils.c