Sync OpenBSD patchset 1028:

Don't die if fail to get root directory, from Ben Boeckel.
pull/1/head
Tiago Cunha 2012-02-15 19:31:35 +00:00
parent cfa6ac9161
commit 3e94fa70f9
1 changed files with 2 additions and 1 deletions

1
cmd.c
View File

@ -1308,6 +1308,7 @@ cmd_get_default_path(struct cmd_ctx *ctx, const char *cwd)
else
return (s->cwd);
skip = 0;
if (root != NULL)
goto complete_path;
}