X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..295241d4043c55a41259b4846464e1668b2f6a5f:/packages/ruby/pty.c.patch diff --git a/packages/ruby/pty.c.patch b/packages/ruby/pty.c.patch index d2b18bd8..317d1e7b 100644 --- a/packages/ruby/pty.c.patch +++ b/packages/ruby/pty.c.patch @@ -1,12 +1,12 @@ -diff -u -r ../ruby-2.1.2/ext/pty/pty.c ./ext/pty/pty.c ---- ../ruby-2.1.2/ext/pty/pty.c 2014-02-10 12:45:14.000000000 +0100 -+++ ./ext/pty/pty.c 2014-06-27 02:17:31.936710571 +0200 -@@ -174,7 +174,7 @@ - if (pwent && pwent->pw_shell) - shellname = pwent->pw_shell; - else -- shellname = "/bin/sh"; -+ shellname = "/system/bin/sh"; - } - v = rb_str_new2(shellname); - argc = 1; +diff -u -r ../ruby-2.4.0/ext/pty/pty.c ./ext/pty/pty.c +--- ../ruby-2.4.0/ext/pty/pty.c 2016-04-29 21:12:52.000000000 -0400 ++++ ./ext/pty/pty.c 2017-01-13 07:15:02.848063672 -0500 +@@ -164,7 +164,7 @@ + char errbuf[32]; + + if (argc == 0) { +- const char *shellname = "/bin/sh"; ++ const char *shellname = "@TERMUX_PREFIX@/bin/sh"; + + if ((p = getenv("SHELL")) != NULL) { + shellname = p;