chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / lftp / src-PtyShell.cc.patch
1 --- ../cache/lftp-4.8.0/src/PtyShell.cc 2016-02-21 00:57:52.000000000 +1100
2 +++ ./src/PtyShell.cc   2017-07-21 14:33:14.130083766 +1000
3 @@ -143,7 +143,7 @@
4        putenv((char*)"LANGUAGE=C");
5        if(a)
6          execvp(a->a0(),a->GetVNonConst());
7 -      execl("/bin/sh","sh","-c",name.get(),NULL);
8 +      execl("@TERMUX_PREFIX@/bin/sh","sh","-c",name.get(),NULL);
9        fprintf(stderr,_("execl(/bin/sh) failed: %s\n"),strerror(errno));
10        fflush(stderr);
11        _exit(1);