btrfs-progs: restore: use on-stack path buffer in do_list_roots
authorDavid Sterba <dsterba@suse.com>
Wed, 2 Nov 2016 23:37:51 +0000 (00:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Nov 2016 12:47:33 +0000 (13:47 +0100)
commit6dfe365b4bc52f199c98f676a3184886d1e39f61
tree60cff5a819620c0d5380d316b7aac10ecee5ca4f
parent61b72497bb3ef66065bfb38ea2450b37f79dc823
btrfs-progs: restore: use on-stack path buffer in do_list_roots

We don't need to conserve stack space too much unlike kernel, also
remove one error condition.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-restore.c