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) {
/* Try once more if Win32 drive -- make absolute */
&& strncmp(cd->fname, path, len) == 0) {
break;
}
+ if (fnmatch(path, cd->fname, len) == 0) {
+ break;
+ }
}
if (!cd || (cd->type == TN_FILE && !tree_node_has_child(cd))) {
return NULL;