ソースを参照

Fix #684: support path appended to hostname

master
Arun Prakash Jana 4年前
コミット
f4ff4b0793
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更8行の追加1行の削除
  1. +8
    -1
      src/nnn.c

+ 8
- 1
src/nnn.c ファイルの表示

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


||||||
x
 
000:0
読み込み中…
キャンセル
保存