termux-packages/packages/sc-im/file.c.patch

21 lines
673 B
Diff
Raw Normal View History

--- ./src/file.c.orig 2017-12-13 17:48:59.000000000 +0000
+++ ./src/file.c 2017-12-30 00:00:31.625092570 +0000
@@ -53,7 +53,7 @@
#include <unistd.h>
#include <wchar.h>
#include <sys/wait.h>
-#include <wordexp.h>
+#include "wordexp.h"
#include "conf.h"
#include "maps.h"
@@ -829,7 +829,7 @@
(void) dup(pipefd[3]); // connect to second pipe
}
(void) signal(SIGINT, SIG_DFL); // reset
- execl("/bin/sh", "sh", "-c", efname, 0, (char *) NULL);
+ execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", efname, 0, (char *) NULL);
exit (-127);
} else { // else parent
*rpid = pid;