X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/6d5e9115d60deef97ec7a9252d3e40b90bc24a3f..14e7b6ecfea408aaf0138ee6b1da08e781b5c52d:/ndk_patches/pwd.patch diff --git a/ndk_patches/pwd.patch b/ndk_patches/pwd.patch index 219ae30e..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 = 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 = "*";