Fossil SCM
Disable the backoffice for SSH clients.
Commit
4b4e133a8c4497d1eaf65a4e36f9391b60286629b7941162735a82bbd4fdba09
Parent
666b0ce6a797adc…
1 file changed
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -344,11 +344,11 @@ | ||
| 344 | 344 | |
| 345 | 345 | /* After the webpage has been sent, do any useful background |
| 346 | 346 | ** processing. |
| 347 | 347 | */ |
| 348 | 348 | g.cgiOutput = 2; |
| 349 | - if( g.db!=0 && iReplyStatus==200 ){ | |
| 349 | + if( g.db!=0 && iReplyStatus==200 && !g.fSshClient ){ | |
| 350 | 350 | fclose(g.httpOut); |
| 351 | 351 | #ifdef _WIN32 |
| 352 | 352 | g.httpOut = fossil_fopen("NUL", "wb"); |
| 353 | 353 | #else |
| 354 | 354 | g.httpOut = fossil_fopen("/dev/null", "wb"); |
| 355 | 355 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -344,11 +344,11 @@ | |
| 344 | |
| 345 | /* After the webpage has been sent, do any useful background |
| 346 | ** processing. |
| 347 | */ |
| 348 | g.cgiOutput = 2; |
| 349 | if( g.db!=0 && iReplyStatus==200 ){ |
| 350 | fclose(g.httpOut); |
| 351 | #ifdef _WIN32 |
| 352 | g.httpOut = fossil_fopen("NUL", "wb"); |
| 353 | #else |
| 354 | g.httpOut = fossil_fopen("/dev/null", "wb"); |
| 355 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -344,11 +344,11 @@ | |
| 344 | |
| 345 | /* After the webpage has been sent, do any useful background |
| 346 | ** processing. |
| 347 | */ |
| 348 | g.cgiOutput = 2; |
| 349 | if( g.db!=0 && iReplyStatus==200 && !g.fSshClient ){ |
| 350 | fclose(g.httpOut); |
| 351 | #ifdef _WIN32 |
| 352 | g.httpOut = fossil_fopen("NUL", "wb"); |
| 353 | #else |
| 354 | g.httpOut = fossil_fopen("/dev/null", "wb"); |
| 355 |