btrfs-progs: restore: use on-stack path buffer in find_first_dir
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:34 +0000 (13:47 +0100)
commitd1ec1fe602512f4e97273ae5ed236ffc5a66f06a
tree54dc82bb4814c25d22faa98e4c838aae55d88a55
parent6dfe365b4bc52f199c98f676a3184886d1e39f61
btrfs-progs: restore: use on-stack path buffer in find_first_dir

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