diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-02-15 19:31:35 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-02-15 19:31:35 +0000 |
commit | 3e94fa70f982d30d8d18379976f07e895fdc8114 (patch) | |
tree | 7742d763d722f15216da3d0942098e161338c13a | |
parent | cfa6ac9161095dfaf4d9eb3cad3b80dc82af79e7 (diff) | |
download | rtmux-3e94fa70f982d30d8d18379976f07e895fdc8114.tar.gz rtmux-3e94fa70f982d30d8d18379976f07e895fdc8114.tar.bz2 rtmux-3e94fa70f982d30d8d18379976f07e895fdc8114.zip |
Sync OpenBSD patchset 1028:
Don't die if fail to get root directory, from Ben Boeckel.
-rw-r--r-- | cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1308,7 +1308,8 @@ cmd_get_default_path(struct cmd_ctx *ctx, const char *cwd) else return (s->cwd); skip = 0; - goto complete_path; + if (root != NULL) + goto complete_path; } return (s->cwd); |