From: Eric Bollengier Date: Tue, 17 Apr 2012 13:00:39 +0000 (+0200) Subject: Fix #1857 about restore cd command that blocks on empty directory X-Git-Tag: Release-7.0.0~267 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b8154752675fdb65450fc4a38e113160140f4321;p=bacula%2Fbacula Fix #1857 about restore cd command that blocks on empty directory --- diff --git a/bacula/src/dird/ua_tree.c b/bacula/src/dird/ua_tree.c index d471cfad16..ee16ab1f9e 100644 --- a/bacula/src/dird/ua_tree.c +++ b/bacula/src/dird/ua_tree.c @@ -798,10 +798,6 @@ static int cdcmd(UAContext *ua, TREE_CTX *tree) ua->error_msg(_("Too few or too many arguments. Try using double quotes.\n")); return 1; } - if (!tree_node_has_child(tree->node)) { - ua->send_msg(_("Node %s has no children.\n"), tree->node->fname); - return 1; - } node = tree_cwd(ua->argk[1], tree->root, tree->node); if (!node) {