From 23cf7f0779ee847f40457f253f924a66d5f5ddd3 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sun, 13 Aug 2017 08:42:11 +1000 Subject: [PATCH] fixed sftp shell (#1261) --- packages/lftp/ptyshell.cc.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/lftp/ptyshell.cc.patch diff --git a/packages/lftp/ptyshell.cc.patch b/packages/lftp/ptyshell.cc.patch new file mode 100644 index 000000000..6ed35e189 --- /dev/null +++ b/packages/lftp/ptyshell.cc.patch @@ -0,0 +1,11 @@ +--- ../cache/lftp-4.8.0/src/PtyShell.cc 2016-02-21 00:57:52.000000000 +1100 ++++ ./src/PtyShell.cc 2017-07-21 14:33:14.130083766 +1000 +@@ -143,7 +143,7 @@ + putenv((char*)"LANGUAGE=C"); + if(a) + execvp(a->a0(),a->GetVNonConst()); +- execl("/bin/sh","sh","-c",name.get(),NULL); ++ execl("@TERMUX_PREFIX@/bin/sh","sh","-c",name.get(),NULL); + fprintf(stderr,_("execl(/bin/sh) failed: %s\n"),strerror(errno)); + fflush(stderr); + _exit(1);