]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1857 about restore cd command that blocks on empty directory
authorEric Bollengier <eric@baculasystems.com>
Tue, 17 Apr 2012 13:00:39 +0000 (15:00 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:33 +0000 (14:50 +0200)
bacula/src/dird/ua_tree.c

index d471cfad160b1f7e36b95c4112a675276c8a9e90..ee16ab1f9e9b340d712ca36c8ed0713a70a47b41 100644 (file)
@@ -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) {