1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 18:57:08 +00:00
termux-packages/disabled-packages/slashem-extended/sys-unix-unixunix.c.patch
2022-02-26 01:55:34 +09:00

21 lines
487 B
Diff

--- a/sys/unix/unixunix.c
+++ b/sys/unix/unixunix.c
@@ -387,7 +387,7 @@
if((str = getenv("SHELL")) != (char*)0)
(void) execl(str, str, (char *)0);
else
- (void) execl("/bin/sh", "sh", (char *)0);
+ (void) execl("@TERMUX_PREFIX@/bin/sh", "sh", (char *)0);
raw_print("sh: cannot execute.");
exit(EXIT_FAILURE);
}
@@ -395,7 +395,7 @@
}
#endif /* PUBLIC_SERVER */
-#if defined(SHELL) || defined(DEF_PAGER) || defined(DEF_MAILREADER)
+#if 1
int
child(wt)
int wt;