Browse Source

Fix #684: support path appended to hostname

master
Arun Prakash Jana 4 years ago
parent
commit
f4ff4b0793
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/nnn.c

+ 8
- 1
src/nnn.c View File

@@ -4027,8 +4027,15 @@ static bool remote_mount(char *newpath)

/* Convert "Host" to "Host:" */
size_t len = xstrlen(tmp);
bool path = FALSE;

if (tmp[len - 1] != ':') { /* Append ':' if missing */
for (size_t count = 0; count < len; ++count)
if (tmp[count] == ':') {
path = TRUE;
break;
}

if (!path) { /* Append ':' if missing */
tmp[len] = ':';
tmp[len + 1] = '\0';
}


Loading…
Cancel
Save