From 394bbb6454a35e3a8adb42a8793aa3e16e6598f8 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 12 Aug 2015 01:29:50 -0400 Subject: [PATCH] pwd.h patch: Add casting --- ndk_patches/pwd.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk_patches/pwd.patch b/ndk_patches/pwd.patch index 4cbc750da..b302e8f8f 100644 --- a/ndk_patches/pwd.patch +++ b/ndk_patches/pwd.patch @@ -24,7 +24,7 @@ diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl + if (access(bash_path, X_OK) != -1) pw->pw_shell = (char*) bash_path; + else pw->pw_shell = "@TERMUX_PREFIX@/bin/ash"; + } else { -+ pw->pw_shell = strcmp(realpath_buffer, "@TERMUX_PREFIX@/bin/busybox") == 0 ? "@TERMUX_PREFIX@/bin/ash" : realpath_buffer; ++ pw->pw_shell = strcmp(realpath_buffer, "@TERMUX_PREFIX@/bin/busybox") == 0 ? (char*)"@TERMUX_PREFIX@/bin/ash" : realpath_buffer; + } + pw->pw_dir = "@TERMUX_HOME@"; + pw->pw_passwd = "*";