From 395b0af1dc672f6a25c831cafa01ba3d815ec133 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 17 Apr 2012 15:00:39 +0200 Subject: [PATCH] Fix #1857 about restore cd command that blocks on empty directory --- bacula/src/dird/ua_tree.c | 4 ---- 1 file changed, 4 deletions(-) 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) { -- 2.39.5