Parcourir la source

Fix #684: support path appended to hostname

master
Arun Prakash Jana il y a 4 ans
Parent
révision
f4ff4b0793
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: A75979F35C080412
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. +8
    -1
      src/nnn.c

+ 8
- 1
src/nnn.c Voir le fichier

@@ -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';
}


Chargement…
Annuler
Enregistrer