X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/4b74af2c3b02712bb991dedfe06bb8adad199a9a..532458b57a1a44683498f8ccc151d4ae5847ec23:/ndk_patches/pwd.patch diff --git a/ndk_patches/pwd.patch b/ndk_patches/pwd.patch index 4cbc750d..b302e8f8 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 = "*";