-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
229a035
commit 17d0b3b
Showing
15 changed files
with
204 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- i/src/svr-chansession.c | ||
+++ w/src/svr-chansession.c | ||
@@ -681,6 +681,17 @@ static int sessioncommand(struct Channel *channel, struct ChanSess *chansess, | ||
TRACE(("leave sessioncommand, command too long %d", cmdlen)) | ||
return DROPBEAR_FAILURE; | ||
} | ||
+ | ||
+#ifdef DBSCP_PATH | ||
+ // HACK. This is terrible. Truly, truly awful. | ||
+ if (strncmp(chansess->cmd, "scp", 3) == 0) { | ||
+ char* mangled_cmd = m_malloc(cmdlen + sizeof(DBSCP_PATH)); | ||
+ snprintf(mangled_cmd, cmdlen + sizeof(DBSCP_PATH) + 1, "%s/%s", DBSCP_PATH, chansess->cmd); | ||
+ m_free(chansess->cmd); | ||
+ chansess->cmd = m_strdup(mangled_cmd); | ||
+ m_free(mangled_cmd); | ||
+ } | ||
+#endif | ||
} | ||
if (issubsys) { | ||
#if DROPBEAR_SFTPSERVER |
149 changes: 0 additions & 149 deletions
149
thirdparty/dropbear/dropbear-2018.76-kindle-nopasswd-hack.patch
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
thirdparty/dropbear/dropbear-2018.76-kindle-options-hack.patch
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
thirdparty/dropbear/dropbear-2018.76-kindle-pubkey-gen-hack.patch
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
thirdparty/dropbear/dropbear-2018.76-scp-command-hack-cervantes.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.