Fossil

Check-in [297cb3e5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Need this "-e none" options to ssh.. if not, ssh can process the escape caracter to process command from data that's goes to fossil proces..
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | mg_sshfix
Files: files | file ages | folders
SHA1:297cb3e525e0a4a0f59f80b0eb7b8d4a1d53dfa9
User & Date: mgagnon 2012-09-12 16:24:43
Original User & Date: meeks 2012-09-12 16:24:43
Context
2012-09-12
16:24
Need this "-e none" options to ssh.. if not, ssh can process the escape caracter to process command from data that's goes to fossil proces.. Closed-Leaf check-in: 297cb3e5 user: mgagnon tags: mg_sshfix
15:27
Now, just call /bin/sh as command argument.. I don't have problem with mail checking and motd and modification is very simple..

- Have to check if it work in all conditions and all systems.

- Might not work for settups where server use a restricted shell.. check-in: 531a58fd user: mgagnon tags: mg_sshfix

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_transport.c.

90
91
92
93
94
95
96

97



98
99
100
101
102
103
104
    got--;
  }
}

/*
** Default SSH command
*/

static char zDefaultSshCmd[] = "ssh";




/*
** Global initialization of the transport layer
*/
void transport_global_startup(void){
  if( g.urlIsSsh ){
    /* Only SSH requires a global initialization.  For SSH we need to create







>

>
>
>







90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
    got--;
  }
}

/*
** Default SSH command
*/
#ifdef __MINGW32__
static char zDefaultSshCmd[] = "ssh";
#else
static char zDefaultSshCmd[] = "ssh -e none";
#endif

/*
** Global initialization of the transport layer
*/
void transport_global_startup(void){
  if( g.urlIsSsh ){
    /* Only SSH requires a global initialization.  For SSH we need to create