Fossil SCM
Use -P to change ssh port numbers on windows, but -p on unix.
Commit
1212f0b0c6da9eda4d2064e590f5c9a4126b5c76
Parent
0cdb6403cb1dd73…
1 file changed
+4
+4
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -113,11 +113,15 @@ | ||
| 113 | 113 | char zIn[200]; /* An input line received back from remote */ |
| 114 | 114 | |
| 115 | 115 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 116 | 116 | blob_init(&zCmd, zSsh, -1); |
| 117 | 117 | if( g.urlPort!=g.urlDfltPort ){ |
| 118 | +#ifdef __MINGW32__ | |
| 118 | 119 | blob_appendf(&zCmd, " -P %d", g.urlPort); |
| 120 | +#else | |
| 121 | + blob_appendf(&zCmd, " -p %d", g.urlPort); | |
| 122 | +#endif | |
| 119 | 123 | } |
| 120 | 124 | if( g.urlUser && g.urlUser[0] ){ |
| 121 | 125 | zHost = mprintf("%s@%s", g.urlUser, g.urlName); |
| 122 | 126 | #ifdef __MINGW32__ |
| 123 | 127 | /* Only win32 (and specifically PLINK.EXE support the -pw option */ |
| 124 | 128 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -113,11 +113,15 @@ | |
| 113 | char zIn[200]; /* An input line received back from remote */ |
| 114 | |
| 115 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 116 | blob_init(&zCmd, zSsh, -1); |
| 117 | if( g.urlPort!=g.urlDfltPort ){ |
| 118 | blob_appendf(&zCmd, " -P %d", g.urlPort); |
| 119 | } |
| 120 | if( g.urlUser && g.urlUser[0] ){ |
| 121 | zHost = mprintf("%s@%s", g.urlUser, g.urlName); |
| 122 | #ifdef __MINGW32__ |
| 123 | /* Only win32 (and specifically PLINK.EXE support the -pw option */ |
| 124 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -113,11 +113,15 @@ | |
| 113 | char zIn[200]; /* An input line received back from remote */ |
| 114 | |
| 115 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 116 | blob_init(&zCmd, zSsh, -1); |
| 117 | if( g.urlPort!=g.urlDfltPort ){ |
| 118 | #ifdef __MINGW32__ |
| 119 | blob_appendf(&zCmd, " -P %d", g.urlPort); |
| 120 | #else |
| 121 | blob_appendf(&zCmd, " -p %d", g.urlPort); |
| 122 | #endif |
| 123 | } |
| 124 | if( g.urlUser && g.urlUser[0] ){ |
| 125 | zHost = mprintf("%s@%s", g.urlUser, g.urlName); |
| 126 | #ifdef __MINGW32__ |
| 127 | /* Only win32 (and specifically PLINK.EXE support the -pw option */ |
| 128 |